#1521 DDC-2922 verifying that persistence operations will resume normally after a crash due to invalid new values detected on associations - tweaked test to make it fail
This commit is contained in:
parent
89fbb6a060
commit
a754eae0f0
@ -746,13 +746,12 @@ class UnitOfWorkTest extends OrmTestCase
|
||||
self::assertEmpty($persister2->getInserts());
|
||||
}
|
||||
|
||||
$this->_unitOfWork->persist($cascadePersisted);
|
||||
$this->_unitOfWork->persist($nonCascading);
|
||||
$this->_unitOfWork->persist(new CascadePersistedEntity());
|
||||
$this->_unitOfWork->commit();
|
||||
|
||||
// Persistence operations should just recover normally:
|
||||
self::assertCount(1, $persister1->getInserts());
|
||||
self::assertCount(1, $persister2->getInserts());
|
||||
self::assertCount(0, $persister2->getInserts());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user