Sonata\Tests\ProductBundle\Entity\ProductManagerTest::testGetPagerWithEnabledProducts PHP Method

testGetPagerWithEnabledProducts() public method

    public function testGetPagerWithEnabledProducts()
    {
        $self = $this;
        $this->getProductManager(function ($qb) use($self) {
            $qb->expects($self->once())->method('andWhere')->with($self->equalTo('p.enabled = :enabled'));
            $qb->expects($self->once())->method('setParameters')->with($self->equalTo(array('enabled' => true)));
        })->getPager(array('enabled' => true), 1);
    }