1
0
mirror of synced 2025-02-02 21:41:45 +03:00

#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:
Marco Pivetta 2017-08-22 08:51:27 +02:00
parent 89fbb6a060
commit a754eae0f0
No known key found for this signature in database
GPG Key ID: 4167D3337FD9D629

View File

@ -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());
}
}