Skip to content

Running Backend PHP Integration Tests

Why Use Integration Tests?

Integration tests are used to verify that different parts of the application work together as expected. They test the interaction between components, such as controllers, models, and the database, to ensure that the system behaves correctly as a whole. This helps catch issues that may not be apparent in unit tests, which only test individual pieces in isolation.

Setup

Follow the steps in Setup.

Running the Integration Tests

To run the backend PHP integration tests, use the following command:

sh
composer test:integration

This command will execute all integration tests using the test_emmie database. Ensure that the database is available and properly configured before running the tests.