public function testGetPagerWithInvalidSort()
{
$self = $this;
$this->getProductManager(function ($qb) use($self) {
$qb->expects($self->never())->method('andWhere');
$qb->expects($self->once())->method('orderBy')->with($self->equalTo('p.name'), $self->equalTo('ASC'));
$qb->expects($self->once())->method('setParameters')->with($self->equalTo(array()));
})->getPager(array(), 1, 10, array('invalid' => 'ASC'));
}