public function apiShouldReturn($response = [], $times = 1, $method = 'exec') { $this->request->shouldReceive($method)->times($times)->andReturn(json_encode($response)); return $this; }