YoVDO

PHPUnit: Integration Testing with Live Services

Offered By: SymfonyCasts

Tags

PHPUnit Courses Integration Testing Courses Mocking Courses

Course Description

Overview

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!


Syllabus

  • Hello Integration Tests!
  • KernelTestCase: Fetching Services
  • Test Environment Database Setup
  • Resetting the Database
  • Factory Data Seeding
  • Testing a Service
  • Partial Mocking
  • The Repository Test Helper
  • Testing Emails
  • Testing Messenger

Taught by

Jesse Rushlow and Ryan Weaver

Related Courses

Introduction to Unit Testing in Jest - The Fundamentals
Coursera Project Network via Coursera
Unit Testing for Data Science in Python
DataCamp
WebServices/Rest API Testing with SoapUI +Real time Projects
Udemy
Testing Fundamentals in iOS
Pluralsight
F#: Automated Testing for Developers
LinkedIn Learning