Minor - format code, remove unused bootKernel in tests

pull/4032/head
Julio 4 years ago
parent f88ad517fc
commit d82b987c35
  1. 2
      src/CourseBundle/Entity/CSurveyQuestionOption.php
  2. 2
      src/CourseBundle/Entity/CThematicAdvance.php
  3. 2
      tests/CourseBundle/Repository/CLinkCategoryRepositoryTest.php
  4. 2
      tests/CourseBundle/Repository/CLinkRepositoryTest.php
  5. 2
      tests/CourseBundle/Repository/CLpCategoryRepositoryTest.php
  6. 2
      tests/CourseBundle/Repository/CLpItemRepositoryTest.php
  7. 4
      tests/CourseBundle/Repository/CLpRepositoryTest.php
  8. 2
      tests/CourseBundle/Repository/CQuizQuestionRepositoryTest.php
  9. 6
      tests/CourseBundle/Repository/CQuizRepositoryTest.php
  10. 8
      tests/CourseBundle/Repository/CStudentPublicationRepositoryTest.php
  11. 2
      tests/CourseBundle/Repository/CThematicRepositoryTest.php
  12. 2
      tests/CourseBundle/Repository/CWikiRepositoryTest.php

@ -9,8 +9,6 @@ namespace Chamilo\CourseBundle\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* CSurveyQuestionOption.
*
* @ORM\Table(
* name="c_survey_question_option",
* indexes={

@ -13,8 +13,6 @@ use DateTime;
use Doctrine\ORM\Mapping as ORM;
/**
* CThematicAdvance.
*
* @ORM\Table(
* name="c_thematic_advance",
* indexes={

@ -17,8 +17,6 @@ class CLinkCategoryRepositoryTest extends AbstractApiTest
public function testCreate(): void
{
self::bootKernel();
$em = $this->getEntityManager();
$repo = self::getContainer()->get(CLinkCategoryRepository::class);

@ -17,8 +17,6 @@ class CLinkRepositoryTest extends AbstractApiTest
public function testCreate(): void
{
self::bootKernel();
$em = $this->getEntityManager();
$repo = self::getContainer()->get(CLinkRepository::class);

@ -17,8 +17,6 @@ class CLpCategoryRepositoryTest extends AbstractApiTest
public function testCreate(): void
{
self::bootKernel();
$em = $this->getEntityManager();
$repo = self::getContainer()->get(CLpCategoryRepository::class);

@ -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);

@ -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);

@ -19,8 +19,6 @@ class CQuizQuestionRepositoryTest extends AbstractApiTest
public function testCreate(): void
{
self::bootKernel();
$em = $this->getEntityManager();
$repo = self::getContainer()->get(CQuizQuestionRepository::class);

@ -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');

@ -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);

@ -17,8 +17,6 @@ class CThematicRepositoryTest extends AbstractApiTest
public function testCreate(): void
{
self::bootKernel();
$em = $this->getEntityManager();
$repo = self::getContainer()->get(CThematicRepository::class);

@ -17,8 +17,6 @@ class CWikiRepositoryTest extends AbstractApiTest
public function testCreate(): void
{
self::bootKernel();
$em = $this->getEntityManager();
$repo = self::getContainer()->get(CWikiRepository::class);

Loading…
Cancel
Save