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

testGetPagerWithDisabledProducts() public method

    public function testGetPagerWithDisabledProducts()
    {
        $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' => false)));
        })->getPager(array('enabled' => false), 1);
    }