Notes | Transcript | Code | Playlist Notes Before we can really dive into testing, I think any conversation about integration testing into workflow has to start with “how it benefits you.” Testing requires more work from you upfront, but saves you time and money later. The benefits are huge to your company, clients, and you. Let’s talk about why and what you get. In this episode, I’ll show you the benefits of testing by showing you a real world framework that had a bug in it. As I was writing tests for it, I found a bug, one that […]
Notes | Transcript | Playlist Notes In this episode, you and I will walk through setting up your testing environment. You’ll do the following: Spin up a locally hosted website on your machine. I’ll show you in Local (my preferred app). Download the Beans 1.4.0 framework, which you’ll use to write your tests in this lab and series. Set up the tests file structure. Look at Make WordPress’ Testing Standards You’ll also look at 2 different test repositories, which will give you ideas on how tests and the environment are constructed: Beans – which is built strictly following the WordPress […]
Notes | Transcript | Playlist Notes So before we can go too far down the rabbit hole, we need to start right now and define what “testing” is. I want you to cement this in your mind. I’ve already talked about the benefits to you. But now we need to what it is. And then we’re going to break it down into different classifications. Testing validates your code to the expected behavior for a given set of conditions and scenarios. It also helps you to think through how the function will work and different scenarios that will happen. That makes […]
Let’s discuss what we will be doing in this lab…together.
Testing is a critical component of your workflow, as it validates each piece of your code to ensure it works exactly as you intended. As a professional developer, testing is a skill that will set you a part and give you a competitive advantage in the marketplace. In this hands-on lab, you will be building unit and integration tests as you learn the basics of PHP testing.