From b1ef25ff7c717c4fb8576d4d527150626d8acd9d Mon Sep 17 00:00:00 2001 From: Growiel Date: Tue, 20 Aug 2024 15:40:15 +0200 Subject: [PATCH 1/2] update composer.json and add WebProfilerBundle to the test app --- Tests/Functional/BaseTestCase.php | 2 ++ composer.json | 24 ++++++++++++------------ 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/Tests/Functional/BaseTestCase.php b/Tests/Functional/BaseTestCase.php index 84de681..692d834 100644 --- a/Tests/Functional/BaseTestCase.php +++ b/Tests/Functional/BaseTestCase.php @@ -15,6 +15,7 @@ use Symfony\Bundle\FrameworkBundle\FrameworkBundle; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Bundle\TwigBundle\TwigBundle; +use Symfony\Bundle\WebProfilerBundle\WebProfilerBundle; use Symfony\Component\HttpKernel\Kernel; use Translation\Bundle\TranslationBundle; @@ -45,6 +46,7 @@ protected function setUp(): void $kernel->addTestBundle(TwigBundle::class); $kernel->addTestBundle(TranslationBundle::class); + $kernel->addTestBundle(WebProfilerBundle::class); $this->testKernel = $kernel; diff --git a/composer.json b/composer.json index 944f7ae..b0ba2d1 100644 --- a/composer.json +++ b/composer.json @@ -11,30 +11,30 @@ ], "require": { "php": "^8.1", - "symfony/framework-bundle": "^5.3 || ^6.0", - "symfony/validator": "^5.3 || ^6.0", - "symfony/translation": "^5.3 || ^6.0", - "symfony/twig-bundle": "^5.3 || ^6.0", - "symfony/finder": "^5.3 || ^6.0", - "symfony/intl": "^5.3 || ^6.0", - "symfony/console": "^5.3 || ^6.0", + "symfony/framework-bundle": "^5.3 || ^6.0 || ^7.0", + "symfony/validator": "^5.3 || ^6.0 || ^7.0", + "symfony/translation": "^5.3 || ^6.0 || ^7.0", + "symfony/twig-bundle": "^5.3 || ^6.0 || ^7.0", + "symfony/finder": "^5.3 || ^6.0 || ^7.0", + "symfony/intl": "^5.3 || ^6.0 || ^7.0", + "symfony/console": "^5.3 || ^6.0 || ^7.0", "php-translation/symfony-storage": "^2.1", "php-translation/extractor": "^2.0", "nyholm/nsa": "^1.1", "twig/twig": "^2.14.4 || ^3.3", - "symfony/asset": "^5.3 || ^6.0" + "symfony/asset": "^5.3 || ^6.0 || ^7.0" }, "require-dev": { - "symfony/phpunit-bridge": "^5.2 || ^6.0", + "symfony/phpunit-bridge": "^5.2 || ^6.0 || ^7.0", "bamarni/composer-bin-plugin": "^1.3", "php-translation/translator": "^1.0", "php-http/curl-client": "^1.7 || ^2.0", "php-http/message": "^1.11", "php-http/message-factory": "^1.0.2", - "symfony/twig-bridge": "^5.3 || ^6.0", - "symfony/dependency-injection": "^5.3 || ^6.0", - "symfony/web-profiler-bundle": "^5.3 || ^6.0", + "symfony/twig-bridge": "^5.3 || ^6.0 || ^7.0", + "symfony/dependency-injection": "^5.3 || ^6.0 || ^7.0", + "symfony/web-profiler-bundle": "^5.3 || ^6.0 || ^7.0", "matthiasnoback/symfony-dependency-injection-test": "^4.1", "matthiasnoback/symfony-config-test": "^4.1", "nyholm/psr7": "^1.1", From 01a39a73530c52019fe96d3ba31e85f04ecbe061 Mon Sep 17 00:00:00 2001 From: Growiel Date: Thu, 22 Aug 2024 09:01:09 +0200 Subject: [PATCH 2/2] update dependencies to SF7 compatible versions --- composer.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index b0ba2d1..e28adc8 100644 --- a/composer.json +++ b/composer.json @@ -35,11 +35,12 @@ "symfony/twig-bridge": "^5.3 || ^6.0 || ^7.0", "symfony/dependency-injection": "^5.3 || ^6.0 || ^7.0", "symfony/web-profiler-bundle": "^5.3 || ^6.0 || ^7.0", - "matthiasnoback/symfony-dependency-injection-test": "^4.1", - "matthiasnoback/symfony-config-test": "^4.1", + "matthiasnoback/symfony-dependency-injection-test": "^5.1", + "matthiasnoback/symfony-config-test": "^5.2", "nyholm/psr7": "^1.1", "nyholm/symfony-bundle-test": "^2.0", - "phpstan/phpstan": "^1.11" + "phpstan/phpstan": "^1.11", + "phpunit/phpunit": "^9.6" }, "suggest": { "php-http/httplug-bundle": "To easier configure your httplug clients."