diff --git a/tests/CoreBundle/Repository/AssetRepositoryTest.php b/tests/CoreBundle/Repository/AssetRepositoryTest.php index 7ae92e1c66..e774b9c742 100644 --- a/tests/CoreBundle/Repository/AssetRepositoryTest.php +++ b/tests/CoreBundle/Repository/AssetRepositoryTest.php @@ -17,8 +17,6 @@ class AssetRepositoryTest extends AbstractApiTest public function testCreateAsset(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $assetRepo = self::getContainer()->get(AssetRepository::class); $file = $this->getUploadedFile(); @@ -142,8 +140,6 @@ class AssetRepositoryTest extends AbstractApiTest public function testDelete(): void { - self::bootKernel(); - $assetRepo = self::getContainer()->get(AssetRepository::class); $file = $this->getUploadedFile(); diff --git a/tests/CoreBundle/Repository/CareerRepositoryTest.php b/tests/CoreBundle/Repository/CareerRepositoryTest.php index c1da69c8a9..ef77815aca 100644 --- a/tests/CoreBundle/Repository/CareerRepositoryTest.php +++ b/tests/CoreBundle/Repository/CareerRepositoryTest.php @@ -17,8 +17,6 @@ class CareerRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CareerRepository::class); diff --git a/tests/CoreBundle/Repository/LanguageRepositoryTest.php b/tests/CoreBundle/Repository/LanguageRepositoryTest.php index 61c3d5caa9..2f4f1d6bb2 100644 --- a/tests/CoreBundle/Repository/LanguageRepositoryTest.php +++ b/tests/CoreBundle/Repository/LanguageRepositoryTest.php @@ -17,8 +17,6 @@ class LanguageRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(LanguageRepository::class); $defaultCount = $repo->count([]); diff --git a/tests/CoreBundle/Repository/MessageRepositoryTest.php b/tests/CoreBundle/Repository/MessageRepositoryTest.php index 77d05eced2..89c6c9995c 100644 --- a/tests/CoreBundle/Repository/MessageRepositoryTest.php +++ b/tests/CoreBundle/Repository/MessageRepositoryTest.php @@ -26,8 +26,6 @@ class MessageRepositoryTest extends AbstractApiTest public function testCreateMessage(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $messageRepo = self::getContainer()->get(MessageRepository::class); @@ -81,8 +79,6 @@ class MessageRepositoryTest extends AbstractApiTest public function testCreateMessageWithTags(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $messageTagRepo = self::getContainer()->get(MessageTagRepository::class); @@ -166,8 +162,6 @@ class MessageRepositoryTest extends AbstractApiTest public function testCreateMessageWithAttachment(): void { - self::bootKernel(); - $user1 = $this->getUser('admin'); $user2 = $this->createUser('user2'); @@ -252,8 +246,6 @@ class MessageRepositoryTest extends AbstractApiTest public function testDeleteMessage(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $messageAttachmentRepo = self::getContainer()->get(MessageAttachmentRepository::class); @@ -326,8 +318,6 @@ class MessageRepositoryTest extends AbstractApiTest public function testCreateMessageWithCc(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $messageRepo = self::getContainer()->get(MessageRepository::class); @@ -379,8 +369,6 @@ class MessageRepositoryTest extends AbstractApiTest public function testCreateMessageWithApi(): void { - self::bootKernel(); - $fromUser = $this->createUser('from'); $toUser = $this->createUser('to'); $messageRepo = self::getContainer()->get(MessageRepository::class); @@ -540,8 +528,6 @@ class MessageRepositoryTest extends AbstractApiTest public function testDeleteMessageWithApi(): void { - self::bootKernel(); - $messageTagRepo = self::getContainer()->get(MessageTagRepository::class); $messageRepo = self::getContainer()->get(MessageRepository::class); $userRepo = self::getContainer()->get(UserRepository::class); diff --git a/tests/CoreBundle/Repository/MessageTagRepositoryTest.php b/tests/CoreBundle/Repository/MessageTagRepositoryTest.php index 24987f02e4..0a57cc7293 100644 --- a/tests/CoreBundle/Repository/MessageTagRepositoryTest.php +++ b/tests/CoreBundle/Repository/MessageTagRepositoryTest.php @@ -19,7 +19,6 @@ class MessageTagRepositoryTest extends AbstractApiTest public function testCreateTagAndDeleteUser(): void { - self::bootKernel(); $tagRepo = self::getContainer()->get(MessageTagRepository::class); $testUser = $this->createUser('test'); @@ -113,8 +112,6 @@ class MessageTagRepositoryTest extends AbstractApiTest public function testCreateTagWithApi(): void { - self::bootKernel(); - $testUser = $this->createUser('test'); $token = $this->getUserToken( [ diff --git a/tests/CoreBundle/Repository/SequenceRepositoryTest.php b/tests/CoreBundle/Repository/SequenceRepositoryTest.php index f575eb94bf..aea66669e2 100644 --- a/tests/CoreBundle/Repository/SequenceRepositoryTest.php +++ b/tests/CoreBundle/Repository/SequenceRepositoryTest.php @@ -17,8 +17,6 @@ class SequenceRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(SequenceRepository::class); diff --git a/tests/CoreBundle/Repository/SkillRepositoryTest.php b/tests/CoreBundle/Repository/SkillRepositoryTest.php index c4dbd6eb28..0f9ec0c356 100644 --- a/tests/CoreBundle/Repository/SkillRepositoryTest.php +++ b/tests/CoreBundle/Repository/SkillRepositoryTest.php @@ -31,7 +31,6 @@ class SkillRepositoryTest extends AbstractApiTest public function testCreateSkill(): void { $skillRepo = self::getContainer()->get(SkillRepository::class); - $accessUrl = $this->getAccessUrl(); $skill = (new Skill()) diff --git a/tests/CoreBundle/Repository/ToolRepositoryTest.php b/tests/CoreBundle/Repository/ToolRepositoryTest.php index decf1346d9..eb813f8062 100644 --- a/tests/CoreBundle/Repository/ToolRepositoryTest.php +++ b/tests/CoreBundle/Repository/ToolRepositoryTest.php @@ -17,8 +17,6 @@ class ToolRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(ToolRepository::class); $defaultCount = $repo->count([]);