Remove unecessary persist in tests
This commit is contained in:
parent
be4aafd4f6
commit
6b1d64d484
@ -357,9 +357,6 @@ class UnitOfWorkTest extends OrmTestCase
|
|||||||
|
|
||||||
$entity = new Country(456, 'United Kingdom');
|
$entity = new Country(456, 'United Kingdom');
|
||||||
|
|
||||||
$this->_unitOfWork->persist($entity);
|
|
||||||
$this->assertTrue($this->_unitOfWork->isInIdentityMap($entity));
|
|
||||||
|
|
||||||
$this->_unitOfWork->clear($entity);
|
$this->_unitOfWork->clear($entity);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -367,9 +364,6 @@ class UnitOfWorkTest extends OrmTestCase
|
|||||||
{
|
{
|
||||||
$entity = new Country(456, 'United Kingdom');
|
$entity = new Country(456, 'United Kingdom');
|
||||||
|
|
||||||
$this->_unitOfWork->persist($entity);
|
|
||||||
$this->assertTrue($this->_unitOfWork->isInIdentityMap($entity));
|
|
||||||
|
|
||||||
$this->_unitOfWork->clear();
|
$this->_unitOfWork->clear();
|
||||||
|
|
||||||
$this->assertFalse($this->_unitOfWork->isInIdentityMap($entity));
|
$this->assertFalse($this->_unitOfWork->isInIdentityMap($entity));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user