Skip to content

Commit

Permalink
CI: Fix call to SessionRepository::getSessionsByUser - refs BT#21633
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed May 14, 2024
1 parent e9981a5 commit 7b51cc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/CoreBundle/Repository/SessionRepositoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,7 @@ public function testCreateWithSessionCategory(): void
public function testSessionRelUser(): void
{
$em = $this->getEntityManager();
/** @var SessionRepository $sessionRepo */
$sessionRepo = self::getContainer()->get(SessionRepository::class);

$url = $this->getAccessUrl();
Expand Down Expand Up @@ -582,7 +583,7 @@ public function testSessionRelUser(): void
$this->assertSame(2, $session->getAllUsersFromCourse(Session::STUDENT)->count());

$student1 = $this->getUser('student1');
$sessions = $sessionRepo->getSessionsByUser($student1, $url);
$sessions = $sessionRepo->getSessionsByUser($student1, $url)->getQuery()->getResult();
$this->assertCount(1, $sessions);

$sessions = $sessionRepo->getSessionCoursesByStatusInUserSubscription($student1, $session, Session::STUDENT);
Expand Down

0 comments on commit 7b51cc5

Please sign in to comment.