useModelSet('generic'); parent::setUp(); } /** * @group DDC-949 */ public function testBooleanThroughRepository() { $true = new BooleanModel(); $true->booleanField = true; $false = new BooleanModel(); $false->booleanField = false; $this->_em->persist($true); $this->_em->persist($false); $this->_em->flush(); $this->_em->clear(); $true = $this->_em->getRepository('Doctrine\Tests\Models\Generic\BooleanModel')->findOneBy(array('booleanField' => true)); $false = $this->_em->getRepository('Doctrine\Tests\Models\Generic\BooleanModel')->findOneBy(array('booleanField' => false)); $this->assertType('Doctrine\Tests\Models\Generic\BooleanModel', $true); $this->assertTrue($true->booleanField, "True Boolean Model should be true."); $this->assertType('Doctrine\Tests\Models\Generic\BooleanModel', $false); $this->assertFalse($false->booleanField, "False Boolean Model should be false."); } }