DoctrineExtensions\Tests\Query\Postgresql\CountFilterTest::testCountFilter PHP Method

testCountFilter() public method

public testCountFilter ( )
    public function testCountFilter()
    {
        $dql = "SELECT COUNT_FILTER(b, WHERE b.id = :id) FROM DoctrineExtensions\\Tests\\Entities\\Blank b";
        $q = $this->entityManager->createQuery($dql);
        $q->setParameter('id', 1);
        $sql = 'SELECT COUNT(b0_.id) FILTER( WHERE b0_.id = ?) AS sclr_0 FROM Blank b0_';
        $this->assertEquals($sql, $q->getSql());
    }
CountFilterTest