#1228 DDC-3490 - persistence of invalid values should also cause exceptions
This commit is contained in:
parent
d0c0f43c79
commit
9c1275bb1f
@ -269,10 +269,9 @@ class UnitOfWorkTest extends \Doctrine\Tests\OrmTestCase
|
|||||||
$user->username = 'John';
|
$user->username = 'John';
|
||||||
$user->avatar = $invalidValue;
|
$user->avatar = $invalidValue;
|
||||||
|
|
||||||
$this->_unitOfWork->persist($user);
|
|
||||||
|
|
||||||
$this->setExpectedException('Doctrine\ORM\ORMInvalidArgumentException');
|
$this->setExpectedException('Doctrine\ORM\ORMInvalidArgumentException');
|
||||||
|
|
||||||
|
$this->_unitOfWork->persist($user);
|
||||||
$this->_unitOfWork->computeChangeSet($metadata, $user);
|
$this->_unitOfWork->computeChangeSet($metadata, $user);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user