From d82b987c350892d81076ecbd046d3f7fde372134 Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 19 Oct 2021 08:40:28 +0200 Subject: [PATCH] Minor - format code, remove unused bootKernel in tests --- src/CourseBundle/Entity/CSurveyQuestionOption.php | 2 -- src/CourseBundle/Entity/CThematicAdvance.php | 2 -- .../Repository/CLinkCategoryRepositoryTest.php | 2 -- tests/CourseBundle/Repository/CLinkRepositoryTest.php | 2 -- .../CourseBundle/Repository/CLpCategoryRepositoryTest.php | 2 -- tests/CourseBundle/Repository/CLpItemRepositoryTest.php | 2 -- tests/CourseBundle/Repository/CLpRepositoryTest.php | 4 ---- .../Repository/CQuizQuestionRepositoryTest.php | 2 -- tests/CourseBundle/Repository/CQuizRepositoryTest.php | 6 ------ .../Repository/CStudentPublicationRepositoryTest.php | 8 -------- tests/CourseBundle/Repository/CThematicRepositoryTest.php | 2 -- tests/CourseBundle/Repository/CWikiRepositoryTest.php | 2 -- 12 files changed, 36 deletions(-) diff --git a/src/CourseBundle/Entity/CSurveyQuestionOption.php b/src/CourseBundle/Entity/CSurveyQuestionOption.php index cbdd344bc8..30601d040b 100644 --- a/src/CourseBundle/Entity/CSurveyQuestionOption.php +++ b/src/CourseBundle/Entity/CSurveyQuestionOption.php @@ -9,8 +9,6 @@ namespace Chamilo\CourseBundle\Entity; use Doctrine\ORM\Mapping as ORM; /** - * CSurveyQuestionOption. - * * @ORM\Table( * name="c_survey_question_option", * indexes={ diff --git a/src/CourseBundle/Entity/CThematicAdvance.php b/src/CourseBundle/Entity/CThematicAdvance.php index 8fa9020f2c..b1f2c5d142 100644 --- a/src/CourseBundle/Entity/CThematicAdvance.php +++ b/src/CourseBundle/Entity/CThematicAdvance.php @@ -13,8 +13,6 @@ use DateTime; use Doctrine\ORM\Mapping as ORM; /** - * CThematicAdvance. - * * @ORM\Table( * name="c_thematic_advance", * indexes={ diff --git a/tests/CourseBundle/Repository/CLinkCategoryRepositoryTest.php b/tests/CourseBundle/Repository/CLinkCategoryRepositoryTest.php index 53b103bf28..8de6a754ab 100644 --- a/tests/CourseBundle/Repository/CLinkCategoryRepositoryTest.php +++ b/tests/CourseBundle/Repository/CLinkCategoryRepositoryTest.php @@ -17,8 +17,6 @@ class CLinkCategoryRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CLinkCategoryRepository::class); diff --git a/tests/CourseBundle/Repository/CLinkRepositoryTest.php b/tests/CourseBundle/Repository/CLinkRepositoryTest.php index 5cc9af8262..615c675db6 100644 --- a/tests/CourseBundle/Repository/CLinkRepositoryTest.php +++ b/tests/CourseBundle/Repository/CLinkRepositoryTest.php @@ -17,8 +17,6 @@ class CLinkRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CLinkRepository::class); diff --git a/tests/CourseBundle/Repository/CLpCategoryRepositoryTest.php b/tests/CourseBundle/Repository/CLpCategoryRepositoryTest.php index c282938d7d..6913d6509c 100644 --- a/tests/CourseBundle/Repository/CLpCategoryRepositoryTest.php +++ b/tests/CourseBundle/Repository/CLpCategoryRepositoryTest.php @@ -17,8 +17,6 @@ class CLpCategoryRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CLpCategoryRepository::class); diff --git a/tests/CourseBundle/Repository/CLpItemRepositoryTest.php b/tests/CourseBundle/Repository/CLpItemRepositoryTest.php index 904f2cfa9e..2c1c34baff 100644 --- a/tests/CourseBundle/Repository/CLpItemRepositoryTest.php +++ b/tests/CourseBundle/Repository/CLpItemRepositoryTest.php @@ -19,8 +19,6 @@ class CLpItemRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $lpRepo = self::getContainer()->get(CLpRepository::class); $lpItemRepo = self::getContainer()->get(CLpItemRepository::class); diff --git a/tests/CourseBundle/Repository/CLpRepositoryTest.php b/tests/CourseBundle/Repository/CLpRepositoryTest.php index 4ac5b65547..50fc54d883 100644 --- a/tests/CourseBundle/Repository/CLpRepositoryTest.php +++ b/tests/CourseBundle/Repository/CLpRepositoryTest.php @@ -19,8 +19,6 @@ class CLpRepositoryTest extends AbstractApiTest public function testCreateLp(): void { - self::bootKernel(); - $repo = self::getContainer()->get(CLpRepository::class); $course = $this->createCourse('new'); @@ -63,8 +61,6 @@ class CLpRepositoryTest extends AbstractApiTest public function testCreateWithForum(): void { - self::bootKernel(); - $lpRepo = self::getContainer()->get(CLpRepository::class); $forumRepo = self::getContainer()->get(CForumRepository::class); diff --git a/tests/CourseBundle/Repository/CQuizQuestionRepositoryTest.php b/tests/CourseBundle/Repository/CQuizQuestionRepositoryTest.php index de8d90e990..e76f96ad19 100644 --- a/tests/CourseBundle/Repository/CQuizQuestionRepositoryTest.php +++ b/tests/CourseBundle/Repository/CQuizQuestionRepositoryTest.php @@ -19,8 +19,6 @@ class CQuizQuestionRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CQuizQuestionRepository::class); diff --git a/tests/CourseBundle/Repository/CQuizRepositoryTest.php b/tests/CourseBundle/Repository/CQuizRepositoryTest.php index 6d090d96c0..ac6f362498 100644 --- a/tests/CourseBundle/Repository/CQuizRepositoryTest.php +++ b/tests/CourseBundle/Repository/CQuizRepositoryTest.php @@ -18,8 +18,6 @@ class CQuizRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CQuizRepository::class); @@ -70,8 +68,6 @@ class CQuizRepositoryTest extends AbstractApiTest public function testUpdateNodeForResource(): void { - self::bootKernel(); - $repo = self::getContainer()->get(CQuizRepository::class); $course = $this->createCourse('new'); @@ -96,8 +92,6 @@ class CQuizRepositoryTest extends AbstractApiTest public function testFindAllByCourse(): void { - self::bootKernel(); - $repo = self::getContainer()->get(CQuizRepository::class); $course = $this->createCourse('new'); diff --git a/tests/CourseBundle/Repository/CStudentPublicationRepositoryTest.php b/tests/CourseBundle/Repository/CStudentPublicationRepositoryTest.php index 2851010ce8..9b9fd53b0e 100644 --- a/tests/CourseBundle/Repository/CStudentPublicationRepositoryTest.php +++ b/tests/CourseBundle/Repository/CStudentPublicationRepositoryTest.php @@ -17,8 +17,6 @@ class CStudentPublicationRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CStudentPublicationRepository::class); @@ -42,8 +40,6 @@ class CStudentPublicationRepositoryTest extends AbstractApiTest public function testFindAllByCourse(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CStudentPublicationRepository::class); @@ -71,8 +67,6 @@ class CStudentPublicationRepositoryTest extends AbstractApiTest public function testGetStudentAssignments(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CStudentPublicationRepository::class); @@ -116,8 +110,6 @@ class CStudentPublicationRepositoryTest extends AbstractApiTest public function testGetStudentPublicationByUser(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CStudentPublicationRepository::class); diff --git a/tests/CourseBundle/Repository/CThematicRepositoryTest.php b/tests/CourseBundle/Repository/CThematicRepositoryTest.php index 75fc5cab73..97aa27d0be 100644 --- a/tests/CourseBundle/Repository/CThematicRepositoryTest.php +++ b/tests/CourseBundle/Repository/CThematicRepositoryTest.php @@ -17,8 +17,6 @@ class CThematicRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CThematicRepository::class); diff --git a/tests/CourseBundle/Repository/CWikiRepositoryTest.php b/tests/CourseBundle/Repository/CWikiRepositoryTest.php index f16ac81e8c..3d8958d8f3 100644 --- a/tests/CourseBundle/Repository/CWikiRepositoryTest.php +++ b/tests/CourseBundle/Repository/CWikiRepositoryTest.php @@ -17,8 +17,6 @@ class CWikiRepositoryTest extends AbstractApiTest public function testCreate(): void { - self::bootKernel(); - $em = $this->getEntityManager(); $repo = self::getContainer()->get(CWikiRepository::class);