store() public method

Store a newly created resource in storage.
public store ( App\Http\Requests\CreateTaskRequest $request ) : Illuminate\Http\RedirectResponse
$request App\Http\Requests\CreateTaskRequest
return Illuminate\Http\RedirectResponse
 /**
  * Test store.
  */
 public function testStore()
 {
     // This is a workaround to make the expectsJobs binding work properly.
     // https://github.com/laravel/lumen-framework/issues/207#issuecomment-136305487
     unset($this->app->availableBindings['Illuminate\\Contracts\\Bus\\Dispatcher']);
     $this->expectsJobs('App\\Jobs\\CreateTaskJob');
     $request = new Request([], $this->taskData);
     $controller = new TaskController();
     $this->response = $controller->store($request);
     $this->assertEquals(200, $this->response->status());
     $this->seeJsonEquals(['success' => true]);
 }