Sonata\tests\CustomerBundle\Entity\AddressManagerTest::testGetPagerWithMultipleSort PHP Method

testGetPagerWithMultipleSort() public method

    public function testGetPagerWithMultipleSort()
    {
        $self = $this;
        $this->getAddressManager(function ($qb) use($self) {
            $qb->expects($self->never())->method('andWhere');
            $qb->expects($self->exactly(2))->method('orderBy')->with($self->logicalOr($self->equalTo('a.name'), $self->equalTo('a.firstname')), $self->logicalOr($self->equalTo('ASC'), $self->equalTo('DESC')));
            $qb->expects($self->once())->method('setParameters')->with($self->equalTo(array()));
        })->getPager(array(), 1, 10, array('name' => 'ASC', 'firstname' => 'DESC'));
    }