コード例 #1
0
ファイル: DataTableTest.php プロジェクト: hifone/dashboard
 public function testSetSortWithInput()
 {
     $this->config->shouldReceive('getOption')->never()->shouldReceive('getDataModel')->never();
     $this->dataTable->setSort(array('field' => 'foo', 'direction' => 'bar'));
     $this->assertEquals($this->dataTable->getSort(), array('field' => 'foo', 'direction' => 'desc'));
 }