/** * Test not found exception when getting an invalid task. * * @expectedException Illuminate\Database\Eloquent\ModelNotFoundException */ public function testTaskNotFound() { $request = new Request(); $controller = new TaskController(); $this->response = $controller->task($request, 0); }