From c97799f15174917119fd6604b5ee3b1584825e0e Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sun, 27 Nov 2016 18:10:57 +0100 Subject: [PATCH] #6017 expecting an `ORMInvalidArgumentException` when clearing with invalid data --- tests/Doctrine/Tests/ORM/UnitOfWorkTest.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php b/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php index 523baf071..61957aa1e 100644 --- a/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php +++ b/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php @@ -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); }