From 6e3ad496e2a089900b2b42c742cad2d44a6a0002 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 23 Jan 2015 16:10:14 +0100 Subject: [PATCH] #1277 DDC-3346 DDC-3531 - constants over string references --- .../Tests/ORM/Functional/Ticket/DDC3346Test.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php index 7ae4fa70603..e02788c6959 100644 --- a/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php +++ b/tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php @@ -14,12 +14,10 @@ public function setUp() { parent::setUp(); - $this->setUpEntitySchema( - array( - DDC3346Author::CLASSNAME, - DDC3346Article::CLASSNAME, - ) - ); + $this->setUpEntitySchema(array( + DDC3346Author::CLASSNAME, + DDC3346Article::CLASSNAME, + )); } public function testFindOneWithEagerFetchWillNotHydrateLimitedCollection() @@ -40,7 +38,7 @@ public function testFindOneWithEagerFetchWillNotHydrateLimitedCollection() $this->_em->clear(); /** @var DDC3346Author $author */ - $author = $this->_em->getRepository('Doctrine\Tests\Models\DDC3346\DDC3346Author')->findOneBy( + $author = $this->_em->getRepository(DDC3346Author::CLASSNAME)->findOneBy( array('username' => "bwoogy") ); @@ -65,7 +63,7 @@ public function testFindLimitedWithEagerFetchWillNotHydrateLimitedCollection() $this->_em->clear(); /** @var DDC3346Author[] $authors */ - $authors = $this->_em->getRepository('Doctrine\Tests\Models\DDC3346\DDC3346Author')->findBy( + $authors = $this->_em->getRepository(DDC3346Author::CLASSNAME)->findBy( array('username' => "bwoogy"), null, 1 @@ -93,7 +91,7 @@ public function testFindWithEagerFetchAndOffsetWillNotHydrateLimitedCollection() $this->_em->clear(); /** @var DDC3346Author[] $authors */ - $authors = $this->_em->getRepository('Doctrine\Tests\Models\DDC3346\DDC3346Author')->findBy( + $authors = $this->_em->getRepository(DDC3346Author::CLASSNAME)->findBy( array('username' => "bwoogy"), null, null,