#6017 expecting an ORMInvalidArgumentException
when clearing with invalid data
This commit is contained in:
parent
56598596a4
commit
c97799f151
@ -355,11 +355,10 @@ class UnitOfWorkTest extends OrmTestCase
|
||||
*/
|
||||
public function testClearManagerWithObject()
|
||||
{
|
||||
$this->expectException(ORMException::class);
|
||||
$this->expectExceptionMessage('must be a string');
|
||||
|
||||
$entity = new Country(456, 'United Kingdom');
|
||||
|
||||
$this->expectException(ORMInvalidArgumentException::class);
|
||||
|
||||
$this->_unitOfWork->clear($entity);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user