/**
* 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]);
}