From 2c3ea30a1f5093b5a1c03fb5bf82532b95a581d1 Mon Sep 17 00:00:00 2001 From: Alan Poulain Date: Thu, 15 Oct 2020 12:51:16 +0200 Subject: [PATCH] fix: allow Sylius 1.8 (#47) --- composer.json | 2 +- tests/Application/config/bundles.php | 1 + tests/Application/config/packages/doctrine_migrations.yaml | 7 +++---- tests/E2e/ShopTest.php | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/composer.json b/composer.json index aa21bb1..5b57791 100644 --- a/composer.json +++ b/composer.json @@ -7,7 +7,7 @@ "require": { "php": "^7.4", "simshaun/recurr": "^4.0", - "sylius/sylius": "<1.8", + "sylius/sylius": "^1.7", "symfony/lock": "^4.4 || ^5.0" }, "require-dev": { diff --git a/tests/Application/config/bundles.php b/tests/Application/config/bundles.php index 2d262d7..4ef547f 100644 --- a/tests/Application/config/bundles.php +++ b/tests/Application/config/bundles.php @@ -64,4 +64,5 @@ CoopTilleuls\SyliusClickNCollectPlugin\CoopTilleulsSyliusClickNCollectPlugin::class => ['all' => true], Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true], Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true, 'test_cached' => true], + SyliusLabs\DoctrineMigrationsExtraBundle\SyliusLabsDoctrineMigrationsExtraBundle::class => ['all' => true], ]; diff --git a/tests/Application/config/packages/doctrine_migrations.yaml b/tests/Application/config/packages/doctrine_migrations.yaml index c0a1202..cdbc01a 100644 --- a/tests/Application/config/packages/doctrine_migrations.yaml +++ b/tests/Application/config/packages/doctrine_migrations.yaml @@ -1,5 +1,4 @@ doctrine_migrations: - dir_name: "%kernel.project_dir%/src/Migrations" - - # Namespace is arbitrary but should be different from App\Migrations as migrations classes should NOT be autoloaded - namespace: DoctrineMigrations + storage: + table_storage: + table_name: sylius_migrations diff --git a/tests/E2e/ShopTest.php b/tests/E2e/ShopTest.php index 063a8f2..1c01216 100644 --- a/tests/E2e/ShopTest.php +++ b/tests/E2e/ShopTest.php @@ -28,7 +28,7 @@ public function testOrder(): void $client = self::createPantherClient(); $crawler = $client->request('GET', '/'); - $this->assertPageTitleContains('Sylius'); + $this->assertPageTitleContains('Fashion Web Store'); $client->click($crawler->filter('a.sylius-product-name')->link());