Skip to content

Commit 1573420

Browse files
committed
Fix WhereInWalkerTest
1 parent 5b7a340 commit 1573420

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/Doctrine/Tests/ORM/Tools/Pagination/WhereInWalkerTest.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ public function testDqlQueryTransformation(string $dql, string $expectedSql): vo
2121
$query->setHint(Query::HINT_CUSTOM_TREE_WALKERS, [WhereInWalker::class]);
2222
$query->setHint(WhereInWalker::HINT_PAGINATOR_HAS_IDS, true);
2323

24-
$result = (new Parser($query))->parse();
24+
$result = (new Parser($query))->parse();
25+
$executor = $result->getSqlFinalizer()->createExecutor($query);
2526

26-
self::assertEquals($expectedSql, $result->getSqlExecutor()->getSqlStatements());
27+
self::assertEquals($expectedSql, $executor->getSqlStatements());
2728
self::assertEquals([0], $result->getSqlParameterPositions(WhereInWalker::PAGINATOR_ID_ALIAS));
2829
}
2930

0 commit comments

Comments
 (0)