diff --git a/tests/Feature/Student/StudentListTest.php b/tests/Feature/Student/StudentListTest.php index 5fbbfd57..56d8671b 100644 --- a/tests/Feature/Student/StudentListTest.php +++ b/tests/Feature/Student/StudentListTest.php @@ -49,19 +49,23 @@ public function a_list_of_registered_students_can_be_retrieved(): void } public function test_student_list_controller() - { - $response = $this->get('api/v1/student/home'); +{ + $response = $this->get('api/v1/student/list/for-home'); - $response->assertStatus(200); + $response->assertStatus(200); - $response->assertJsonStructure([ - '*' => [ - 'fullname', - 'subtitle', - 'photo', - 'tags', - 'id' - ] - ]); - } + $response->assertJsonStructure([ + '*' => [ + 'fullname', + 'subtitle', + 'photo', + 'tags', + 'id' + ]/* , + '*.tags.*' => [ + 'id', + 'name' + ] */ + ]); +} }