1
0
mirror of synced 2025-02-09 00:39:25 +03:00

Remove unecessary persist in tests

This commit is contained in:
Jeremy Benoist 2016-11-27 18:05:18 +01:00 committed by Marco Pivetta
parent be4aafd4f6
commit 6b1d64d484

View File

@ -357,9 +357,6 @@ class UnitOfWorkTest extends OrmTestCase
$entity = new Country(456, 'United Kingdom');
$this->_unitOfWork->persist($entity);
$this->assertTrue($this->_unitOfWork->isInIdentityMap($entity));
$this->_unitOfWork->clear($entity);
}
@ -367,9 +364,6 @@ class UnitOfWorkTest extends OrmTestCase
{
$entity = new Country(456, 'United Kingdom');
$this->_unitOfWork->persist($entity);
$this->assertTrue($this->_unitOfWork->isInIdentityMap($entity));
$this->_unitOfWork->clear();
$this->assertFalse($this->_unitOfWork->isInIdentityMap($entity));