public function testAddSortBy() { $this->object->addSortBy(SortBy::SORT_BY_EXPRESSION, 'sort by'); $this->assertEquals(SortBy::SORT_BY_EXPRESSION, $this->object->getSortBy()->getMode()); $this->assertEquals('sort by', $this->object->getSortBy()->getSortBy()); }