示例#1
0
 /**
  * @expectedException \Lug\Component\Grid\Exception\BadMethodCallException
  * @expectedExceptionMessage The "name" sort type is a virtual type, you can't use it directly.
  */
 public function testSort()
 {
     $sort = $this->createSortMock();
     $sort->expects($this->once())->method('getName')->will($this->returnValue('name'));
     $this->type->sort('data', ['sort' => $sort]);
 }