From 3ca125366cf234f611379e658d67f55cb8352199 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Baillet?= Date: Mon, 16 Dec 2024 17:17:23 +0100 Subject: [PATCH] clean composer dependencies + fix warning during test --- composer.json | 16 +--------------- .../Integration/DoctrineAgentRepositoryTest.php | 2 -- .../Community/Acceptance/CreateCommunityTest.php | 2 -- .../Community/Acceptance/GetCommunitiesTest.php | 2 -- .../Community/Acceptance/UpdateCommunityTest.php | 2 -- .../DoctrineCommunityListenerTest.php | 2 -- .../DoctrineCommunityRepositoryTest.php | 2 -- .../Integration/DoctrineFieldListenerTest.php | 2 -- tests/Place/Acceptance/CreatePlaceTest.php | 2 -- tests/Place/Acceptance/UpdatePlaceTest.php | 2 -- 10 files changed, 1 insertion(+), 33 deletions(-) diff --git a/composer.json b/composer.json index baca98b2..15100a6a 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,6 @@ "ext-ctype": "*", "ext-iconv": "*", "api-platform/doctrine-orm": "^4.0", - "api-platform/elasticsearch": "^4.0", "api-platform/symfony": "^4.0", "doctrine/dbal": "^3", "doctrine/doctrine-bundle": "^2.13", @@ -23,36 +22,23 @@ "symfony/asset": "7.1.*", "symfony/asset-mapper": "7.1.*", "symfony/console": "7.1.*", - "symfony/doctrine-messenger": "7.1.*", "symfony/dotenv": "7.1.*", "symfony/expression-language": "7.1.*", "symfony/flex": "^2", "symfony/form": "7.1.*", "symfony/framework-bundle": "7.1.*", "symfony/http-client": "7.1.*", - "symfony/intl": "7.1.*", "symfony/lock": "7.1.*", - "symfony/mailer": "7.1.*", - "symfony/mime": "7.1.*", "symfony/monolog-bundle": "^3.0", - "symfony/notifier": "7.1.*", - "symfony/process": "7.1.*", "symfony/property-access": "7.1.*", "symfony/property-info": "7.1.*", "symfony/runtime": "7.1.*", "symfony/security-bundle": "7.1.*", "symfony/serializer": "7.1.*", - "symfony/stimulus-bundle": "^2.20", "symfony/string": "7.1.*", - "symfony/translation": "7.1.*", - "symfony/twig-bundle": "7.1.*", "symfony/uid": "7.1.*", - "symfony/ux-turbo": "^2.20", "symfony/validator": "7.1.*", - "symfony/web-link": "7.1.*", - "symfony/yaml": "7.1.*", - "twig/extra-bundle": "^2.12|^3.0", - "twig/twig": "^2.12|^3.0" + "symfony/yaml": "7.1.*" }, "config": { "allow-plugins": { diff --git a/tests/Agent/Integration/DoctrineAgentRepositoryTest.php b/tests/Agent/Integration/DoctrineAgentRepositoryTest.php index 43b95e95..957e2b4f 100644 --- a/tests/Agent/Integration/DoctrineAgentRepositoryTest.php +++ b/tests/Agent/Integration/DoctrineAgentRepositoryTest.php @@ -9,11 +9,9 @@ use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; final class DoctrineAgentRepositoryTest extends KernelTestCase { - use ResetDatabase; use Factories; private static EntityManagerInterface $em; diff --git a/tests/Community/Acceptance/CreateCommunityTest.php b/tests/Community/Acceptance/CreateCommunityTest.php index 5f256c44..d8c8fa35 100644 --- a/tests/Community/Acceptance/CreateCommunityTest.php +++ b/tests/Community/Acceptance/CreateCommunityTest.php @@ -13,11 +13,9 @@ use Symfony\Component\HttpFoundation\Response as HttpFoundationResponse; use Symfony\Component\Uid\Uuid; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; class CreateCommunityTest extends AcceptanceTestHelper { - use ResetDatabase; use Factories; public function testShouldPassWithGoodData(): void diff --git a/tests/Community/Acceptance/GetCommunitiesTest.php b/tests/Community/Acceptance/GetCommunitiesTest.php index 883b7422..6d3fb9fe 100644 --- a/tests/Community/Acceptance/GetCommunitiesTest.php +++ b/tests/Community/Acceptance/GetCommunitiesTest.php @@ -15,11 +15,9 @@ use App\Tests\Helper\AcceptanceTestHelper; use Symfony\Component\HttpFoundation\Response as HttpFoundationResponse; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; class GetCommunitiesTest extends AcceptanceTestHelper { - use ResetDatabase; use Factories; public SearchHelperInterface $searchHelper; diff --git a/tests/Community/Acceptance/UpdateCommunityTest.php b/tests/Community/Acceptance/UpdateCommunityTest.php index 1bcb8fca..08d43db4 100644 --- a/tests/Community/Acceptance/UpdateCommunityTest.php +++ b/tests/Community/Acceptance/UpdateCommunityTest.php @@ -15,13 +15,11 @@ use Symfony\Component\HttpFoundation\Response as HttpFoundationResponse; use Symfony\Component\Uid\UuidV7; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; use function Zenstruck\Foundry\Persistence\flush_after; class UpdateCommunityTest extends AcceptanceTestHelper { - use ResetDatabase; use Factories; public function testShouldPassWithGoodData(): void diff --git a/tests/Community/Integration/DoctrineCommunityListenerTest.php b/tests/Community/Integration/DoctrineCommunityListenerTest.php index c0d4fc7d..2d8b0070 100644 --- a/tests/Community/Integration/DoctrineCommunityListenerTest.php +++ b/tests/Community/Integration/DoctrineCommunityListenerTest.php @@ -15,11 +15,9 @@ use App\Tests\Field\DummyFactory\DummyFieldFactory; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; final class DoctrineCommunityListenerTest extends KernelTestCase { - use ResetDatabase; use Factories; private DoctrineCommunityListener $listener; diff --git a/tests/Community/Integration/DoctrineCommunityRepositoryTest.php b/tests/Community/Integration/DoctrineCommunityRepositoryTest.php index e6ea427e..490f7879 100644 --- a/tests/Community/Integration/DoctrineCommunityRepositoryTest.php +++ b/tests/Community/Integration/DoctrineCommunityRepositoryTest.php @@ -15,11 +15,9 @@ use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; final class DoctrineCommunityRepositoryTest extends KernelTestCase { - use ResetDatabase; use Factories; private static EntityManagerInterface $em; diff --git a/tests/Field/Integration/DoctrineFieldListenerTest.php b/tests/Field/Integration/DoctrineFieldListenerTest.php index 334b868b..b3441946 100644 --- a/tests/Field/Integration/DoctrineFieldListenerTest.php +++ b/tests/Field/Integration/DoctrineFieldListenerTest.php @@ -16,13 +16,11 @@ use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; use function Zenstruck\Foundry\Persistence\flush_after; final class DoctrineFieldListenerTest extends KernelTestCase { - use ResetDatabase; use Factories; private EntityManagerInterface $em; diff --git a/tests/Place/Acceptance/CreatePlaceTest.php b/tests/Place/Acceptance/CreatePlaceTest.php index e480e42b..84bef8f2 100644 --- a/tests/Place/Acceptance/CreatePlaceTest.php +++ b/tests/Place/Acceptance/CreatePlaceTest.php @@ -11,11 +11,9 @@ use App\Tests\Helper\AcceptanceTestHelper; use Symfony\Component\HttpFoundation\Response as HttpFoundationResponse; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; class CreatePlaceTest extends AcceptanceTestHelper { - use ResetDatabase; use Factories; public function testShouldPassWithGoodData(): void diff --git a/tests/Place/Acceptance/UpdatePlaceTest.php b/tests/Place/Acceptance/UpdatePlaceTest.php index 8a328e34..24f3cbb0 100644 --- a/tests/Place/Acceptance/UpdatePlaceTest.php +++ b/tests/Place/Acceptance/UpdatePlaceTest.php @@ -19,13 +19,11 @@ use Symfony\Component\HttpFoundation\Response as HttpFoundationResponse; use Symfony\Component\Uid\UuidV7; use Zenstruck\Foundry\Test\Factories; -use Zenstruck\Foundry\Test\ResetDatabase; use function Zenstruck\Foundry\Persistence\flush_after; class UpdatePlaceTest extends AcceptanceTestHelper { - use ResetDatabase; use Factories; public function testShouldPassWithGoodData(): void