Added a testcase for findBy(.. => null) and renamed 'old' testcase
This commit is contained in:
parent
91bc9c0329
commit
b8af241504
@ -397,7 +397,7 @@ class EntityRepositoryTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
/**
|
/**
|
||||||
* @group DDC-1087
|
* @group DDC-1087
|
||||||
*/
|
*/
|
||||||
public function testIsNullCriteria()
|
public function testIsNullCriteriaDoesNotGenerateAParameter()
|
||||||
{
|
{
|
||||||
$repos = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser');
|
$repos = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser');
|
||||||
$users = $repos->findBy(array('status' => null, 'username' => 'romanb'));
|
$users = $repos->findBy(array('status' => null, 'username' => 'romanb'));
|
||||||
@ -407,6 +407,16 @@ class EntityRepositoryTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
|||||||
$this->assertEquals(array('romanb'), $params);
|
$this->assertEquals(array('romanb'), $params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function testIsNullCriteria()
|
||||||
|
{
|
||||||
|
$this->loadFixture();
|
||||||
|
|
||||||
|
$repos = $this->_em->getRepository('Doctrine\Tests\Models\CMS\CmsUser');
|
||||||
|
|
||||||
|
$users = $repos->findBy(array('status' => null));
|
||||||
|
$this->assertEquals(1, count($users));
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @group DDC-1094
|
* @group DDC-1094
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user