3.1 Composer & Paths
Require the TestApplication
composer require --dev sylius/test-application:^1.14.0@alpha
Set the public dir
composer config extra.public-dir vendor/sylius/test-application/public
Update autoload-dev
{ "autoload-dev": { "psr-4": { "Tests\\YourPlugin\\": "tests/TestApplication/src/" } } }
Then run:
composer dump-autoload
Optional
Check that symfony/flex and symfony/runtime are allowed (needed by TestApplication):
composer config allow-plugins.symfony/flex true composer config allow-plugins.symfony/runtime true
Last updated
Was this helpful?