From 9c1275bb1fcd19c234758c6e4594d20aa6b44c00 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Sun, 18 Jan 2015 00:54:18 +0100 Subject: [PATCH] #1228 DDC-3490 - persistence of invalid values should also cause exceptions --- tests/Doctrine/Tests/ORM/UnitOfWorkTest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php b/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php index affc99159..a0a1b8167 100644 --- a/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php +++ b/tests/Doctrine/Tests/ORM/UnitOfWorkTest.php @@ -269,10 +269,9 @@ class UnitOfWorkTest extends \Doctrine\Tests\OrmTestCase $user->username = 'John'; $user->avatar = $invalidValue; - $this->_unitOfWork->persist($user); - $this->setExpectedException('Doctrine\ORM\ORMInvalidArgumentException'); + $this->_unitOfWork->persist($user); $this->_unitOfWork->computeChangeSet($metadata, $user); }