Skip to content

Commit

Permalink
doctrine#1277 DDC-3346 DDC-3531 - constants over string references
Browse files Browse the repository at this point in the history
  • Loading branch information
Ocramius committed Jan 24, 2015
1 parent 157bf20 commit 6e3ad49
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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")
);

Expand All @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 6e3ad49

Please sign in to comment.