Notes | Transcript | Playlist Notes A unit test tests your code without your code’s dependencies, whereas an integration test tests your code integrated with its dependencies. Dependencies include: WordPress – as it’s outside of your code. An external API – such as Stripe, PayPal, a help desk, weather, population, demographics, etc. An external package you embedded into your plugin, theme, or application, such as Guzzle, CMB2, Fulcrum’s Extender module, or Fulcrum’s Config module. A reusable module that you or your company built and tested separately. In a unit test, you are testing the expected behavior for the given conditions […]
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.