From 660f164568aec5a9c893b041fb1630a2074f6fcb Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 25 Aug 2017 09:21:12 +0200 Subject: [PATCH] #6284 #6217 s/$this->assert/self::assert as per @lcobucci's review --- .../Tests/ORM/Functional/Ticket/GH6217Test.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6217Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6217Test.php index 861925f08..d781d0c81 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6217Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/GH6217Test.php @@ -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`'); } }