public function test_get_billets()
{
$student = factory(Student::class)->create();
$billets = factory(Billet::class, 5)->create(['student_id' => $student->id]);
$this->get('api/v1/student/' . $student->id . '/billets');
$response = json_decode($this->response->getContent(), true);
$this->seeStatusCode(200);
foreach ($billets as $billet) {
$this->seeJson(['due_date' => $billet->due_date->toDateTimeString()]);
$this->seeInDatabase('billets', ['student_id' => $student->id, 'id' => $billet->id]);
}
}