DDC-3065 - hardening test - should support multiple values in IN(), also NULL ones
This commit is contained in:
parent
f2f571e4ab
commit
f54d6157f4
@ -942,9 +942,18 @@ class EntityRepositoryTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
$this->_em->persist($user);
|
$this->_em->persist($user);
|
||||||
$this->_em->flush();
|
$this->_em->flush();
|
||||||
|
|
||||||
$users = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser')->findBy(array('email' => array(null)));
|
$users = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser')->findBy(array('status' => array(null)));
|
||||||
|
|
||||||
$this->assertCount(1, $users);
|
$this->assertCount(1, $users);
|
||||||
|
$this->assertSame($user, reset($users));
|
||||||
|
|
||||||
|
$users = $this
|
||||||
|
->_em
|
||||||
|
->getRepository('Doctrine\Tests\Models\CMS\CmsUser')
|
||||||
|
->findBy(array('status' => array('foo', null)));
|
||||||
|
|
||||||
|
$this->assertCount(1, $users);
|
||||||
|
$this->assertSame($user, reset($users));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user