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

Legacy testing

Legacy tests comprise fragments of libraries that help developers port their modules to a new version of Magento.

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

php bin/magento dev:tests:run legacy

When this is executed, Magento first internally changes the directory to /dev/tests/static and then executes a command, which is similar to the following one:

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

Once this is triggered, the code runs a check for obsolete access lists, connections, menus, responses, system configuration, and a few other things.

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