File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
tests/Tests/ORM/Functional Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,9 @@ public function testModifiedLimitQuery(): void
558558 $ this ->_em ->flush ();
559559 $ this ->_em ->clear ();
560560
561- $ data = $ this ->_em ->createQuery ('SELECT u FROM ' . CmsUser::class . ' u ' )
561+ $ query = 'SELECT u FROM ' . CmsUser::class . ' u ORDER BY u.username ' ;
562+
563+ $ data = $ this ->_em ->createQuery ($ query )
562564 ->setFirstResult (1 )
563565 ->setMaxResults (2 )
564566 ->getResult ();
@@ -567,7 +569,7 @@ public function testModifiedLimitQuery(): void
567569 self ::assertEquals ('gblanco1 ' , $ data [0 ]->username );
568570 self ::assertEquals ('gblanco2 ' , $ data [1 ]->username );
569571
570- $ data = $ this ->_em ->createQuery (' SELECT u FROM ' . CmsUser::class . ' u ' )
572+ $ data = $ this ->_em ->createQuery ($ query )
571573 ->setFirstResult (3 )
572574 ->setMaxResults (2 )
573575 ->getResult ();
@@ -576,7 +578,7 @@ public function testModifiedLimitQuery(): void
576578 self ::assertEquals ('gblanco3 ' , $ data [0 ]->username );
577579 self ::assertEquals ('gblanco4 ' , $ data [1 ]->username );
578580
579- $ data = $ this ->_em ->createQuery (' SELECT u FROM ' . CmsUser::class . ' u ' )
581+ $ data = $ this ->_em ->createQuery ($ query )
580582 ->setFirstResult (3 )
581583 ->setMaxResults (2 )
582584 ->getScalarResult ();
You can’t perform that action at this time.
0 commit comments