Skip to content

Commit

Permalink
updated test_student_list_controller
Browse files Browse the repository at this point in the history
  • Loading branch information
coxen34 committed Feb 8, 2024
1 parent aae7d01 commit 3d3bdb5
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions tests/Feature/Student/StudentListTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'
] */
]);
}
}

0 comments on commit 3d3bdb5

Please sign in to comment.