Frequently Asked Questions

How to set my PrestaShop in test mode ?

To enable the test mode on your PrestaShop, you will need to use the _PS_IN_TEST_ constant.

In order to allow you to enable it only while PrestaFlow will perform a test, you can define it regarding the User Agent.

if ($_SERVER['HTTP_USER_AGENT'] == 'PrestaFlow') {
  define('_PS_IN_TEST_', true);
}

Also, you will need to copy your img folder into the tests/Resources/img folder if it doesn't yet exists.