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

testGetPagerWithConflictInvoices() public method

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