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

testGetPagerWithOpenInvoices() public method

    public function testGetPagerWithOpenInvoices()
    {
        $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_OPEN)));
        })->getPager(array('status' => BaseInvoice::STATUS_OPEN), 1);
    }