diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 61d434f1..503e7051 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,7 +23,7 @@ jobs: matrix: php: ["8.0", "7.4"] symfony: ["^4.4", "^5.2"] - sylius: ["~1.9.0", "~1.10.0"] + sylius: ["~1.9.0", "~1.10.0", "~1.11.0"] node: ["10.x"] mysql: ["8.0"] @@ -31,6 +31,12 @@ jobs: - php: "8.0" sylius: "~1.9.0" + - + php: "7.4" + sylius: "~1.11.0" + - + symfony: "^4.4" + sylius: "~1.11.0" env: APP_ENV: test diff --git a/composer.json b/composer.json index 153c679b..0a971426 100644 --- a/composer.json +++ b/composer.json @@ -9,7 +9,7 @@ "license": "MIT", "require": { "php": "^7.4 || ^8.0", - "sylius/sylius": "~1.9.0 || ~1.10.0" + "sylius/sylius": "~1.9.0 || ~1.10.0 || ~1.11.0" }, "require-dev": { "behat/behat": "^3.6.1", diff --git a/tests/Application/.env b/tests/Application/.env index 99f67228..6e0a2f2f 100644 --- a/tests/Application/.env +++ b/tests/Application/.env @@ -27,3 +27,10 @@ JWT_PASSPHRASE=love_and_vibes_plugin_development # Delivery is disabled by default via "null://localhost" MAILER_URL=smtp://localhost ###< symfony/swiftmailer-bundle ### + +###> symfony/messenger ### +# Choose one of the transports below +# MESSENGER_TRANSPORT_DSN=amqp://guest:guest@localhost:5672/%2f/messages +MESSENGER_TRANSPORT_DSN=doctrine://default +# MESSENGER_TRANSPORT_DSN=redis://localhost:6379/messages +###< symfony/messenger ### diff --git a/tests/Application/Kernel.php b/tests/Application/Kernel.php index ebfcaad9..f8268322 100644 --- a/tests/Application/Kernel.php +++ b/tests/Application/Kernel.php @@ -13,6 +13,7 @@ use Symfony\Component\HttpKernel\Bundle\BundleInterface; use Symfony\Component\HttpKernel\Kernel as BaseKernel; use Symfony\Component\Routing\RouteCollectionBuilder; +use Sylius\Calendar\SyliusCalendarBundle; final class Kernel extends BaseKernel { @@ -38,6 +39,10 @@ public function registerBundles(): iterable continue; } yield from $this->registerBundlesFromFile($bundlesFile); + + if(class_exists(SyliusCalendarBundle::class)) { + yield new SyliusCalendarBundle(); + } } } @@ -67,7 +72,7 @@ protected function configureRoutes(RouteCollectionBuilder $routes): void protected function getContainerBaseClass(): string { - if ($this->isTestEnvironment()) { + if ($this->isTestEnvironment() && class_exists(MockerContainer::class)) { return MockerContainer::class; } diff --git a/tests/Application/config/api_platform/.gitignore b/tests/Application/config/api_platform/.gitignore new file mode 100644 index 00000000..e69de29b