1
0
mirror of synced 2025-02-20 22:23:14 +03:00

#1277 DDC-3346 DDC-3531 - constants over string references

This commit is contained in:
Marco Pivetta 2015-01-23 16:10:14 +01:00
parent 157bf203bc
commit 6e3ad496e2

View File

@ -14,12 +14,10 @@ class DDC3346Test extends \Doctrine\Tests\OrmFunctionalTestCase
{
parent::setUp();
$this->setUpEntitySchema(
array(
DDC3346Author::CLASSNAME,
DDC3346Article::CLASSNAME,
)
);
$this->setUpEntitySchema(array(
DDC3346Author::CLASSNAME,
DDC3346Article::CLASSNAME,
));
}
public function testFindOneWithEagerFetchWillNotHydrateLimitedCollection()
@ -40,7 +38,7 @@ class DDC3346Test extends \Doctrine\Tests\OrmFunctionalTestCase
$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 @@ class DDC3346Test extends \Doctrine\Tests\OrmFunctionalTestCase
$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 @@ class DDC3346Test extends \Doctrine\Tests\OrmFunctionalTestCase
$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,