@@ -43,7 +43,7 @@ public function it_possible_to_see_a_question(): void
43
43
]
44
44
]);
45
45
46
- $ this -> assertEquals (15 , count ($ response ->decodedJsonResponse ()['data ' ]));
46
+ self :: assertEquals (15 , count ($ response ->decodedJsonResponse ()['data ' ]));
47
47
}
48
48
49
49
/** @test */
@@ -88,8 +88,8 @@ public function it_supports_pagination_navigation(): void
88
88
{
89
89
$ response = $ this ->get (route ('discussions.questions.index ' , ['page ' => 2 ]));
90
90
$ response ->assertResponseOk ();
91
- $ this -> assertEquals ( 2 , $ response -> decodedJsonResponse ()[ ' meta ' ][ ' current_page ' ]);
92
- $ this -> assertEquals (2 , $ response ->decodedJsonResponse ()['meta ' ]['current_page ' ]);
91
+
92
+ self :: assertEquals (2 , $ response ->decodedJsonResponse ()['meta ' ]['current_page ' ]);
93
93
}
94
94
95
95
/** @test */
@@ -100,7 +100,7 @@ public function it_searchable_by_author(): void
100
100
101
101
$ response = $ this ->get (route ('discussions.questions.index ' , ['author ' => $ user ->id ]));
102
102
103
- $ this -> assertEquals (1 , count ($ response ->decodedJsonResponse ()['data ' ]));
103
+ self :: assertEquals (1 , count ($ response ->decodedJsonResponse ()['data ' ]));
104
104
}
105
105
106
106
/** @test */
@@ -111,7 +111,7 @@ public function it_searchable_by_title(): void
111
111
112
112
$ response = $ this ->get (route ('discussions.questions.index ' , ['title ' => 'LArAvEL-pt ' ]));
113
113
114
- $ this -> assertEquals (2 , count ($ response ->decodedJsonResponse ()['data ' ]));
114
+ self :: assertEquals (2 , count ($ response ->decodedJsonResponse ()['data ' ]));
115
115
}
116
116
117
117
/** @test */
@@ -124,13 +124,13 @@ public function it_searchable_by_created_at(): void
124
124
'created[from] ' => Carbon::now ()->subMonth ()->subYears (2 )->toDateString (),
125
125
'created[to] ' => Carbon::now ()->addMonth ()->subYears (2 )->toDateString ()
126
126
]));
127
- $ this -> assertEquals (1 , count ($ response ->decodedJsonResponse ()['data ' ]));
127
+ self :: assertEquals (1 , count ($ response ->decodedJsonResponse ()['data ' ]));
128
128
129
129
$ response = $ this ->get (route ('discussions.questions.index ' , [
130
130
'created[from] ' => Carbon::now ()->subMonth ()->subYears (3 )->toDateString (),
131
131
'created[to] ' => Carbon::now ()->addMonth ()->subYears (2 )->toDateString ()
132
132
]));
133
- $ this -> assertEquals (2 , count ($ response ->decodedJsonResponse ()['data ' ]));
133
+ self :: assertEquals (2 , count ($ response ->decodedJsonResponse ()['data ' ]));
134
134
}
135
135
136
136
/** @test */
@@ -139,7 +139,8 @@ public function it_searchable_by_resolved(): void
139
139
QuestionFactory::new (['resolved_at ' => Carbon::now ()->toDateString ()])->create ();
140
140
141
141
$ response = $ this ->get (route ('discussions.questions.index ' , ['resolved ' => true ]));
142
- $ this ->assertEquals (1 , count ($ response ->decodedJsonResponse ()['data ' ]));
142
+
143
+ self ::assertEquals (1 , count ($ response ->decodedJsonResponse ()['data ' ]));
143
144
}
144
145
145
146
/** @test */
0 commit comments