#1228 DDC-3490 - persistence of invalid values should also cause exceptions
This commit is contained in:
parent
d0c0f43c79
commit
9c1275bb1f
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue