1
0
mirror of synced 2025-01-29 19:41:45 +03:00

Fix bug in test, removed an assertion that is not necessary and violates sqlites autoincrement assumptions

This commit is contained in:
Benjamin Eberlei 2011-12-19 22:32:50 +01:00
parent 86f67788c5
commit f2d8102bbf

View File

@ -812,7 +812,6 @@ class BasicFunctionalTest extends \Doctrine\Tests\OrmFunctionalTestCase
public function testOneToOneOrphanRemoval()
{
//$this->_em->getConnection()->getConfiguration()->setSQLLogger(new \Doctrine\DBAL\Logging\EchoSQLLogger);
$user = new CmsUser();
$user->username = "beberlei";
$user->name = "Benjamin E.";
@ -858,7 +857,6 @@ class BasicFunctionalTest extends \Doctrine\Tests\OrmFunctionalTestCase
$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()