1
0
mirror of synced 2025-02-20 22:23:14 +03:00

#1228 DDC-3490 - persistence of invalid values should also cause exceptions

This commit is contained in:
Marco Pivetta 2015-01-18 00:54:18 +01:00
parent d0c0f43c79
commit 9c1275bb1f

View File

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