1
0
mirror of synced 2025-01-23 08:41:41 +03:00

DDC-3065 - hardening test - should support multiple values in IN(), also NULL ones

This commit is contained in:
Marco Pivetta 2014-04-03 16:03:56 +02:00
parent f2f571e4ab
commit f54d6157f4

View File

@ -942,9 +942,18 @@ class EntityRepositoryTest extends \Doctrine\Tests\OrmFunctionalTestCase
$this->_em->persist($user);
$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->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));
}
}