PrestaShop Developer Conference
PrestaShop Developer Conference
Paris, France - November 6, 2024
Let's talk code, commerce and open source.

Notice: You are browsing the documentation for PrestaShop 9, which is currently in development.

You might want to read the documentation for the current version, PrestaShop 8. Read the current version of this page

Integration tests

Introduction

While unit tests can effectively validate the behavior of an isolated PHP class, there are certain classes that cannot be validated in this manner. Additionally, as a significant portion of PrestaShop’s logic is written in complex SQL queries, this type of test may not be sufficient to validate them. Therefore, integration tests are also necessary to ensure proper validation and coverage.

Stack

We use the following stack:

  • Behat for tests that are meaningful scenarios from a user point of view
  • PHPUnit for tests that instead answer the need to test the technical behavior of a class or a component

Execute & Create tests

Next: How to execute Integration Tests ›