/** * @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]); }