Skip to content

Commit

Permalink
[doctrineGH-8413] Add assertions for entity alias iteration.
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Feb 8, 2021
1 parent e6440e6 commit 2c19ded
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Doctrine/Tests/ORM/Functional/QueryIterableTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function testAlias(): void
$users = $query->getResult();
self::assertCount(1, $users);

$this->assertEquals('gblanco', $users[0]['user']->username);

$this->_em->clear();

IterableTester::assertResultsAreTheSame($query);
Expand Down Expand Up @@ -60,6 +62,8 @@ public function testAliasInnerJoin(): void
$users = $query->getResult();
self::assertCount(1, $users);

$this->assertEquals('gblanco', $users[0]['user']->username);

$this->_em->clear();

IterableTester::assertResultsAreTheSame($query);
Expand Down

0 comments on commit 2c19ded

Please sign in to comment.