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