PHPUnit: Integration Testing with Live Services
Shake hands with the messier yet rewarding world of integration testing. Learn database seeding, email, and messenger message testing.
- 670 students
- EN/ES Captions
- EN/ES Script
- Certificate of Completion
Your Guides
About this course
We're back! In episode 1, we walked through the beauty & purity unit testing. But now, we're onto the messier, but super-useful world of integration testing:
- Integration testing? What is that? When do I need that?
- Accessing services from the container
- Clearing the database between tests
- Seeding the database
- Foundry Factories & more!
- Partial Mocking: mock just some dependencies
- Testing emails
- Testing messenger messages
Integration tests are fun and are a critical tool to a well-rounded test suite. Let's go!
Next courses in the Testing: Beginner Testing section of the Testing Track!
15 Comments
Howdy Yuuki-K,
We do not have a firm release date set quite yet. But, the plan is to have this episode roll out in Q1 2023. Now that the holiday's are behind us and the kids are back in school, I'll be full steam ahead on getting this out the door to every as quick as possible.
Be sure to keep an eye on the @SymfonyCasts
& @JesseRushlow
Twitter feeds in the coming week's - I'm sure we'll be posting some updates as we get closer to the release of our prehistoric friends...
Cheers!
Hey Mohamed,
You can find upcoming tutorials on this page: https://symfonycasts.com/courses?status=upcoming&sort=popular#all
Cheers!
Howdy Mohamed-M,
Not yet, but other than we're working on the tutorial as we speak...
Soooooon.... we had some issues, internally. Sorry about the delay! But this will be the next tutorial
Thank you very much @Jesse-Rushlow for these tutorials on Unit tests, it's very clear, can't wait to find the rest on integration tests 🤞
So it's not actually about the full integration testing (with the frontend rendered heavily with js) but about backend application parts interaction?
Hey Igor,
I know naming may be confusing sometimes. Yeah, that's mostly "backend" integration part, i.e. the one that goes after unit testing. With integration testing you start using real objects and Symfony services as dependencies instead of mocking everything. The part you're talking about (when the frontend rendered heavily with js) is called functional testing, not integration testing.
I hope it's clearer for you now.
Cheers!
Hello to the Symfonycast team !
Is there any news about this course?
Has a release date been announced?
Sorry for the delay, the course is being released now :)
Cheers!
Hello, is there any schedule on when this course is set to release?