public function test_update_by_put()
{
$schedule = factory(Schedule::class)->create();
$data = ['name' => 'Schedule x', 'start' => $schedule->start, 'end' => $schedule->end];
$this->put('api/v1/schedule/' . $schedule->id, $data);
$this->seeStatusCode(200);
$this->seeJson(['name' => 'Schedule x']);
$this->assertInstanceOf(Schedule::class, $this->response->original);
$this->seeInDatabase('schedules', ['id' => $this->response->original->id]);
}