1
0
mirror of synced 2025-03-14 00:26:08 +03:00

#6284 #6217 s/$this->assert/self::assert as per @lcobucci's review

This commit is contained in:
Marco Pivetta 2017-08-25 09:21:12 +02:00
parent caa008b61d
commit 660f164568
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -35,17 +35,17 @@ final class GH6217Test extends OrmFunctionalTestCase
$repository = $this->_em->getRepository(GH6217FetchedEntity::class);
$filters = ['eager' => $eager->id];
$this->assertCount(1, $repository->findBy($filters));
self::assertCount(1, $repository->findBy($filters));
$queryCount = $this->getCurrentQueryCount();
/* @var $found GH6217FetchedEntity[] */
$found = $repository->findBy($filters);
$this->assertCount(1, $found);
$this->assertInstanceOf(GH6217FetchedEntity::class, $found[0]);
$this->assertSame($lazy->id, $found[0]->lazy->id);
$this->assertSame($eager->id, $found[0]->eager->id);
$this->assertEquals($queryCount, $this->getCurrentQueryCount(), 'No queries were executed in `findBy`');
self::assertCount(1, $found);
self::assertInstanceOf(GH6217FetchedEntity::class, $found[0]);
self::assertSame($lazy->id, $found[0]->lazy->id);
self::assertSame($eager->id, $found[0]->eager->id);
self::assertEquals($queryCount, $this->getCurrentQueryCount(), 'No queries were executed in `findBy`');
}
}