/** * @expectedException \Lug\Component\Grid\Exception\BadMethodCallException * @expectedExceptionMessage The "name" batch type is a virtual type, you can't use it directly. */ public function testBatch() { $batch = $this->createBatchMock(); $batch->expects($this->once())->method('getName')->will($this->returnValue('name')); $this->type->batch('data', ['batch' => $batch, 'grid' => $this->createGridMock()]); }