Minor: ECS fixes

pull/3984/head
Angel Fernando Quiroz Campos 4 years ago
parent 79048d37d9
commit 59ccc5fcb7
  1. 3
      src/CourseBundle/Repository/CCourseDescriptionRepository.php
  2. 4
      tests/CourseBundle/Repository/CCourseDescriptionRepositoryTest.php

@ -27,7 +27,8 @@ final class CCourseDescriptionRepository extends ResourceRepository
->innerJoin('d.resourceNode', 'node')
->innerJoin('node.resourceLinks', 'links')
->where('d.descriptionType = :type')
->setParameter('type', $type);
->setParameter('type', $type)
;
$this->addCourseSessionGroupQueryBuilder($course, $session, $group, $qb);

@ -69,10 +69,10 @@ class CCourseDescriptionRepositoryTest extends AbstractApiTest
$descriptionsInCourse = $repo->findByTypeInCourse(CCourseDescription::TYPE_DESCRIPTION, $course);
$this->assertSame(1, count($descriptionsInCourse));
$this->assertSame(1, \count($descriptionsInCourse));
$descriptionsInSession = $repo->findByTypeInCourse(CCourseDescription::TYPE_DESCRIPTION, $course, $session);
$this->assertSame(1, count($descriptionsInSession));
$this->assertSame(1, \count($descriptionsInSession));
}
}

Loading…
Cancel
Save