Ejemplo n.º 1
0
 /**
  * @expectedException \Lug\Component\Grid\Exception\BadMethodCallException
  * @expectedExceptionMessage The "name" action type is a virtual type, you can't use it directly.
  */
 public function testRender()
 {
     $action = $this->createActionMock();
     $action->expects($this->once())->method('getName')->will($this->returnValue('name'));
     $this->type->render('data', ['action' => $action]);
 }