create(); $response = $this->actingAs($user)->post('/tasks', [ 'name' => 'Some task' ]); $response->assertStatus(200); } // TASK: this table throws an error, fix it public function test_task_with_no_user() { Task::create(['name' => 'Some task']); $response = $this->get('/tasks'); $response->assertStatus(200); } }