3.1 Composer & Paths

  1. Require the TestApplication

    composer require --dev sylius/test-application:^1.14.0@alpha
  2. Set the public dir

    composer config extra.public-dir vendor/sylius/test-application/public
  3. 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?