Sonata\tests\CustomerBundle\Entity\CustomerManagerTest::testGetPagerWithFakeCustomers PHP Method

testGetPagerWithFakeCustomers() public method

    public function testGetPagerWithFakeCustomers()
    {
        $self = $this;
        $this->getCustomerManager(function ($qb) use($self) {
            $qb->expects($self->once())->method('andWhere')->with($self->equalTo('c.isFake = :isFake'));
            $qb->expects($self->once())->method('setParameters')->with($self->equalTo(array('isFake' => true)));
        })->getPager(array('is_fake' => true), 1);
    }