File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
tests/CoreBundle/Repository Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -543,6 +543,7 @@ public function testCreateWithSessionCategory(): void
543
543
public function testSessionRelUser (): void
544
544
{
545
545
$ em = $ this ->getEntityManager ();
546
+ /** @var SessionRepository $sessionRepo */
546
547
$ sessionRepo = self ::getContainer ()->get (SessionRepository::class);
547
548
548
549
$ url = $ this ->getAccessUrl ();
@@ -582,7 +583,7 @@ public function testSessionRelUser(): void
582
583
$ this ->assertSame (2 , $ session ->getAllUsersFromCourse (Session::STUDENT )->count ());
583
584
584
585
$ student1 = $ this ->getUser ('student1 ' );
585
- $ sessions = $ sessionRepo ->getSessionsByUser ($ student1 , $ url );
586
+ $ sessions = $ sessionRepo ->getSessionsByUser ($ student1 , $ url )-> getQuery ()-> getResult () ;
586
587
$ this ->assertCount (1 , $ sessions );
587
588
588
589
$ sessions = $ sessionRepo ->getSessionCoursesByStatusInUserSubscription ($ student1 , $ session , Session::STUDENT );
You can’t perform that action at this time.
0 commit comments