public function testCreateSortableLinkDesc() { $this->sort->setInput(['sort_dir' => 'desc', 'sort' => 'test']); $link = $this->sort->createSortableLink('sort me'); $expected = '<a href="?sort_dir=asc&sort=test" class="grid-view-sort-desc"><i class="fa fa-chevron-down"></i> sort me</a>'; $this->assertEquals($expected, $link); }