/**
  * @dataProvider dataProviderSuccess
  */
 public function testConstructor($field, $direction)
 {
     $expr = new SortExpr($field, $direction);
     $this->assertTrue(is_string($expr->getName()));
     $this->assertEquals('sort', $expr->getExpression());
     $this->assertEquals('sort', $expr->getOperator());
     $this->assertEquals($field, $expr->getField());
     $this->assertEquals(strtolower($direction), $expr->getValue());
     $this->assertEquals(strtolower($direction), $expr->getDirection());
 }
 /**
  * @param SortExpr $expr
  */
 protected function processSortExpr(SortExpr $expr)
 {
     $this->queryBuilder->addOrderBy($expr->getField(), $expr->getDirection());
 }