Lumao - Développement Magento
PHPUnit QuickStart - Agence Ecommerce Magento TPE PME LUMAO

PHPUnit QuickStart

Installation

composer require phpunit/phpunit

Lancement

Tout

php vendor/phpunit/phpunit/phpunit

Un groupe

php vendor/phpunit/phpunit/phpunit --group critical

Un fichier

php vendor/phpunit/phpunit/phpunit app/code/community/Namespace/Module/Test/Model/Cms/CustomerTest.php

Une méthode

php vendor/phpunit/phpunit/phpunit --filter getGroupIdFromRole app/code/community/Namespace/Module/Test/Model/Cms/CustomerTest.php