Permalink
Browse files

Added coverage for DDC-369 and DDC-954. All passing.

  • Loading branch information...
1 parent a9398e7 commit 3e601c3a53226ce981fe82db164f297a8d605ae7 @guilhermeblanco guilhermeblanco committed May 23, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 tests/Doctrine/Tests/ORM/Functional/AdvancedDqlQueryTest.php
@@ -128,14 +128,16 @@ public function testUpdateAs()
'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()
{

0 comments on commit 3e601c3

Please sign in to comment.