public function testGetNextSortDirection() { $this->sort->setInput(['sort_dir' => 'asc', 'sort' => 'test']); $this->assertEquals('desc', $this->sort->getNextSortDirection()); $this->sort->setInput(['sort_dir' => 'desc', 'sort' => 'test']); $this->assertEquals('asc', $this->sort->getNextSortDirection()); }