File tree 1 file changed +5
-2
lines changed
domains/Discussions/Tests/Feature
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ protected function setUp(): void
27
27
/** @test */
28
28
public function it_possible_to_see_a_question (): void
29
29
{
30
- $ this ->get (route ('discussions.questions.index ' ))
30
+ $ response = $ this ->get (route ('discussions.questions.index ' ))
31
31
->seeJsonStructure ([
32
32
'data ' => [
33
33
[
@@ -42,6 +42,8 @@ public function it_possible_to_see_a_question(): void
42
42
]
43
43
]
44
44
]);
45
+
46
+ $ this ->assertEquals (15 , count ($ response ->decodedJsonResponse ()['data ' ]));
45
47
}
46
48
47
49
/** @test */
@@ -86,7 +88,8 @@ public function it_supports_pagination_navigation(): void
86
88
{
87
89
$ response = $ this ->get (route ('discussions.questions.index ' , ['page ' => 2 ]));
88
90
$ response ->assertResponseOk ();
89
- self ::assertEquals (2 , $ response ->decodedJsonResponse ()['meta ' ]['current_page ' ]);
91
+ $ this ->assertEquals (2 , $ response ->decodedJsonResponse ()['meta ' ]['current_page ' ]);
92
+ $ this ->assertEquals (2 , $ response ->decodedJsonResponse ()['meta ' ]['current_page ' ]);
90
93
}
91
94
92
95
/** @test */
You can’t perform that action at this time.
0 commit comments