Skip to content

Commit

Permalink
doctrine#1277 DDC-3346 DDC-3531 - minor CS fixes/cleanups: avoiding s…
Browse files Browse the repository at this point in the history
…etters
  • Loading branch information
Ocramius committed Jan 23, 2015
1 parent e4aeffd commit d08c57a
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tests/Doctrine/Tests/ORM/Functional/Ticket/DDC3346Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ public function setUp()

public function testFindOneWithEagerFetchWillNotHydrateLimitedCollection()
{
/** @var DDC3346Author $author */
/* @var DDC3346Author $author */
$author = $this->_em->getRepository(DDC3346Author::CLASSNAME)->findOneBy(
array('username' => "bwoogy")
array('username' => 'bwoogy')
);

$this->assertCount(2, $author->articles);
}

public function testFindLimitedWithEagerFetchWillNotHydrateLimitedCollection()
{
/** @var DDC3346Author[] $authors */
/* @var DDC3346Author[] $authors */
$authors = $this->_em->getRepository(DDC3346Author::CLASSNAME)->findBy(
array('username' => "bwoogy"),
array('username' => 'bwoogy'),
null,
1
);
Expand All @@ -44,9 +44,9 @@ public function testFindLimitedWithEagerFetchWillNotHydrateLimitedCollection()

public function testFindWithEagerFetchAndOffsetWillNotHydrateLimitedCollection()
{
/** @var DDC3346Author[] $authors */
/* @var DDC3346Author[] $authors */
$authors = $this->_em->getRepository(DDC3346Author::CLASSNAME)->findBy(
array('username' => "bwoogy"),
array('username' => 'bwoogy'),
null,
null,
1
Expand All @@ -58,14 +58,13 @@ public function testFindWithEagerFetchAndOffsetWillNotHydrateLimitedCollection()

private function loadAuthorFixture()
{
$user = new DDC3346Author();
$user->username = "bwoogy";

$user = new DDC3346Author();
$article1 = new DDC3346Article();
$article1->setAuthor($user);

$article2 = new DDC3346Article();
$article2->setAuthor($user);

$user->username = 'bwoogy';
$article1->user = $user;
$article2->user = $user;

$this->_em->persist($user);
$this->_em->persist($article1);
Expand Down

0 comments on commit d08c57a

Please sign in to comment.