Home Site |
diff --git a/tests/doctrine/DoctrineCleanInsert1Test.php b/tests/doctrine/DoctrineCleanInsert1Test.php
index aa5fc6042..f88a254ba 100644
--- a/tests/doctrine/DoctrineCleanInsert1Test.php
+++ b/tests/doctrine/DoctrineCleanInsert1Test.php
@@ -199,17 +199,17 @@ public function testShowDoctrineReadFailiureUntilCommitted()
{
print __METHOD__ . "\n";
$n = 1;
- // create a new site and persist (but do not flush yet)
+ // create a new site and persist (but do not flush yet)
$site = TestUtil::createSampleSite('site' . $n/*, 'pk' . $n*/);
$this->em->beginTransaction();
$this->em->persist($site);
- // After persist, Doctrine querying does not return our site until we flush, hence we get 0
- // returned from our repository.
- $this->assertEquals(0, count($this->em->getRepository('Site')->findOneBy(array('shortName' => 'site' . $n))));
- // When we flush or commit we get one.
+ // After persist, Doctrine querying does not return our site until we flush, hence we get 0
+ // returned from our repository.
+ $this->assertEquals(0, count($this->em->getRepository('Site')->findBy(array('shortName' => 'site' . $n))));
+ // When we flush or commit we get one.
$this->em->commit();
$this->em->flush();
- $this->assertEquals(1, count($this->em->getRepository('Site')->findOneBy(array('shortName' => 'site' . $n))));
+ $this->assertEquals(1, count($this->em->getRepository('Site')->findBy(array('shortName' => 'site' . $n))));
}
|