O'Reilly logo

Magento 2 Developer's Guide by Branko Ajzele

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Integrity testing

Integrity tests check how an application is linked. They check for things such as merged configuration validation. Basically, they tell us if your application should be able to run.

We can specifically trigger the integrity tests from the root of the Magento installation by using the following command:

php bin/magento dev:tests:run integrity

When this is executed, Magento first internally changes the directory to dev/tests/static and then executes two commands that are similar to the following ones:

php /Users/branko/www/magento2/./vendor/phpunit/phpunit/phpunit
php /Users/branko/www/magento2/./vendor/phpunit/phpunit/phpunit testsuite/Magento/Test/Legacy

Then, Magento internally changes the directory to dev/tests/integration

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required