Sonata\Test\InvoiceBundle\Entity\InvoiceManagerTest::testGetPagerWithPaidInvoices PHP Method

testGetPagerWithPaidInvoices() public method

    public function testGetPagerWithPaidInvoices()
    {
        $self = $this;
        $this->getInvoiceManager(function ($qb) use($self) {
            $qb->expects($self->once())->method('andWhere')->with($self->equalTo('i.status = :status'));
            $qb->expects($self->once())->method('setParameters')->with($self->equalTo(array('status' => BaseInvoice::STATUS_PAID)));
        })->getPager(array('status' => BaseInvoice::STATUS_PAID), 1);
    }