Skip to content

Commit

Permalink
Fix bug in test, removed an assertion that is not necessary and viola…
Browse files Browse the repository at this point in the history
…tes sqlites autoincrement assumptions
  • Loading branch information
beberlei committed Dec 19, 2011
1 parent 86f6778 commit f2d8102
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/Doctrine/Tests/ORM/Functional/BasicFunctionalTest.php
Expand Up @@ -812,7 +812,6 @@ public function testNewAssociatedEntityDuringFlushThrowsException3()

public function testOneToOneOrphanRemoval()
{
//$this->_em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger);
$user = new CmsUser();
$user->username = "beberlei";
$user->name = "Benjamin E.";
Expand Down Expand Up @@ -858,7 +857,6 @@ public function testOneToOneOrphanRemoval()

$this->_em->flush();
$this->assertEquals(1, $this->_em->getConnection()->fetchColumn("select count(*) from cms_addresses"));
$this->assertEquals(0, $this->_em->getConnection()->fetchColumn("select count(*) from cms_addresses where id=".$addressId.""));
}

public function testGetPartialReferenceToUpdateObjectWithoutLoadingIt()
Expand Down

0 comments on commit f2d8102

Please sign in to comment.