Added coverage for DDC-369 and DDC-954. All passing.
This commit is contained in:
parent
a9398e7a74
commit
3e601c3a53
@ -128,14 +128,16 @@ class AdvancedDqlQueryTest extends \Doctrine\Tests\OrmFunctionalTestCase
|
||||
'SELECT count(p.id) FROM Doctrine\Tests\Models\Company\CompanyEmployee p WHERE p.salary = 1')->getResult()) > 0);
|
||||
}
|
||||
|
||||
/*public function testDeleteAs()
|
||||
public function testDeleteAs()
|
||||
{
|
||||
$dql = 'DELETE Doctrine\Tests\Models\Company\CompanyEmployee AS p';
|
||||
$this->_em->createQuery($dql)->getResult();
|
||||
|
||||
$this->assertEquals(0, count($this->_em->createQuery(
|
||||
'SELECT count(p) FROM Doctrine\Tests\Models\Company\CompanyEmployee p')->getResult()));
|
||||
}*/
|
||||
$dql = 'SELECT count(p) FROM Doctrine\Tests\Models\Company\CompanyEmployee p';
|
||||
$result = $this->_em->createQuery($dql)->getSingleScalarResult();
|
||||
|
||||
$this->assertEquals(0, $result);
|
||||
}
|
||||
|
||||
public function generateFixture()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user