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

Registering a managed entity with an empty identifier is to be disallowed

This commit is contained in:
Marco Pivetta 2016-07-07 20:57:02 +02:00
parent 7544934158
commit 0d82128b2e

View File

@ -419,6 +419,13 @@ class UnitOfWorkTest extends OrmTestCase
];
}
public function testRegisteringAManagedInstanceRequiresANonEmptyIdentifier()
{
$this->expectException(ORMInvalidArgumentException::class);
$this->_unitOfWork->registerManaged(new EntityWithBooleanIdentifier(), [], []);
}
/**
* @dataProvider entitiesWithInvalidIdentifiersProvider
*