public function testApiHandleBatch_CallsMethodOnModel() { $handler = $this->createHandler(); $array = ['some']; $val = 'val'; $this->expect('handleBatch', [$array])->willReturn($val); $this->assertSame($val, $handler->handleBatch($array)); }