public function testSortableHeaderNoSort() { // No arrow indicator, link sorts ascending $this->_consoleUrl->expects($this->once())->method('__invoke')->with(null, null, array('order' => 'Key', 'direction' => 'asc'), true)->will($this->returnValue('ConsoleUrlMock')); $this->_htmlTag->expects($this->once())->method('__invoke')->with('a', 'Label', array('href' => 'ConsoleUrlMock'))->will($this->returnValue('HtmlTagMock')); $helper = new \Console\View\Helper\Table($this->_escapeHtml, $this->_htmlTag, $this->_consoleUrl, $this->_dateFormat); $this->assertEquals('HtmlTagMock', $helper->sortableHeader('Label', 'Key', 'Order', 'desc')); }