public function testGetCurrentOrder() { $order = 'price'; $this->model->expects($this->once())->method('getOrder')->will($this->returnValue($order)); $this->catalogConfig->expects($this->once())->method('getAttributeUsedForSortByArray')->will($this->returnValue(['name' => [], 'price' => []])); $this->assertEquals($order, $this->block->getCurrentOrder()); }
public function testGetCurrentOrder() { $order = 'price'; $this->model->expects($this->once())->method('getOrder')->will($this->returnValue($order)); $this->assertEquals($order, $this->block->getCurrentOrder()); }