@@ -116,7 +116,8 @@ public function testSearchProjectsByType(): void
116116 $ this ->assertFalse ($ projectList ->hasPreviousPage ());
117117 }
118118
119- public function testSearchProjectsByDownloadCount () {
119+ public function testSearchProjectsByDownloadCount (): void
120+ {
120121 $ options = new ProjectSearchOptions ();
121122 $ options ->setFacets (new FacetANDGroup ([
122123 new FacetORGroup ([
@@ -168,7 +169,7 @@ public function testGetProject(): void
168169 }
169170 }
170171
171- public function testGetProjectVersionsAndDependencies ()
172+ public function testGetProjectVersionsAndDependencies (): void
172173 {
173174 $ project = $ this ->apiClient ->getProject ("mclogs " );
174175 $ this ->assertNotEmpty ($ project ->getDependencies ());
@@ -181,7 +182,7 @@ public function testGetProjectVersionsAndDependencies()
181182
182183 }
183184
184- public function testGetProjects ()
185+ public function testGetProjects (): void
185186 {
186187 $ ids = ["6DdCzpTL " , "VPo0otUH " ];
187188 $ projects = $ this ->apiClient ->getProjects ($ ids );
@@ -191,7 +192,7 @@ public function testGetProjects()
191192 }
192193 }
193194
194- public function testGetRandomProjects ()
195+ public function testGetRandomProjects (): void
195196 {
196197 $ this ->markTestSkipped ("Known issue: https://github.com/modrinth/labrinth/issues/548 " );
197198// $projects = $this->apiClient->getRandomProjects(5);
@@ -201,7 +202,7 @@ public function testGetRandomProjects()
201202// }
202203 }
203204
204- public function testCheckProjectValidity ()
205+ public function testCheckProjectValidity (): void
205206 {
206207 foreach (["mclogs " , "6DdCzpTL " , "motdgg " , "VPo0otUH " ] as $ idOrSlug ) {
207208 $ this ->assertNotNull ($ this ->apiClient ->checkProjectValidity ($ idOrSlug ));
@@ -210,15 +211,15 @@ public function testCheckProjectValidity()
210211 $ this ->assertNull ($ this ->apiClient ->checkProjectValidity ("i-really-hope-no-one-registers-this-slug " ));
211212 }
212213
213- public function testGetVersion ()
214+ public function testGetVersion (): void
214215 {
215216 $ version = $ this ->apiClient ->getVersion ("moYTqMH3 " );
216217 $ this ->assertNotNull ($ version );
217218 $ this ->assertEquals ("VPo0otUH " , $ version ->getData ()->getProjectId ());
218219 $ this ->assertEquals ("VPo0otUH " , $ version ->getProject ()->getData ()->getId ());
219220 }
220221
221- public function testGetVersions ()
222+ public function testGetVersions (): void
222223 {
223224 $ ids = ["moYTqMH3 " , "gX3fbLHJ " ];
224225 $ versions = $ this ->apiClient ->getVersions ($ ids );
@@ -230,7 +231,7 @@ public function testGetVersions()
230231 }
231232 }
232233
233- public function testGetVersionFromHash ()
234+ public function testGetVersionFromHash (): void
234235 {
235236 $ hashes = [
236237 HashAlgorithm::SHA1 ->value => "5952253d61e199e82eb852c5824c3981b29b209d " ,
@@ -245,7 +246,7 @@ public function testGetVersionFromHash()
245246 }
246247 }
247248
248- public function testGetVersionsFromHashes ()
249+ public function testGetVersionsFromHashes (): void
249250 {
250251 $ hashes = [
251252 "6800de4cf254fd74e0e9b06b34dc87b16624ea838edc795321fb9d6777356d366b47bb1dc736bb6a700861f3619810bd190b10987a32f64dfd261a5d69a2bd8f " ,
@@ -261,7 +262,7 @@ public function testGetVersionsFromHashes()
261262 }
262263 }
263264
264- public function testGetLatestVersionFromHash ()
265+ public function testGetLatestVersionFromHash (): void
265266 {
266267 $ version = $ this ->apiClient ->getLatestVersionFromHash (
267268 "6800de4cf254fd74e0e9b06b34dc87b16624ea838edc795321fb9d6777356d366b47bb1dc736bb6a700861f3619810bd190b10987a32f64dfd261a5d69a2bd8f " ,
@@ -277,7 +278,7 @@ public function testGetLatestVersionFromHash()
277278 );
278279 }
279280
280- public function testGetLatestVersionsFromHashes ()
281+ public function testGetLatestVersionsFromHashes (): void
281282 {
282283 $ versions = $ this ->apiClient ->getLatestVersionsFromHashes (
283284 [
@@ -298,7 +299,7 @@ public function testGetLatestVersionsFromHashes()
298299 }
299300 }
300301
301- public function testGetUser ()
302+ public function testGetUser (): void
302303 {
303304 $ user = $ this ->apiClient ->getUser ("Julian " );
304305 $ this ->assertNotNull ($ user );
@@ -307,7 +308,7 @@ public function testGetUser()
307308 $ this ->assertNotNull ($ projects );
308309 }
309310
310- public function testGetUsers ()
311+ public function testGetUsers (): void
311312 {
312313 $ ids = ["b1AIbOxO " , "ySB3MPni " ];
313314 $ users = $ this ->apiClient ->getUsers ($ ids );
@@ -317,7 +318,7 @@ public function testGetUsers()
317318 }
318319 }
319320
320- public function testGetProjectMembers ()
321+ public function testGetProjectMembers (): void
321322 {
322323 $ members = $ this ->apiClient ->getProjectMembers ("VPo0otUH " );
323324 $ this ->assertNotNull ($ members );
@@ -327,7 +328,7 @@ public function testGetProjectMembers()
327328 }
328329 }
329330
330- public function testGetTeamMembers ()
331+ public function testGetTeamMembers (): void
331332 {
332333 $ members = $ this ->apiClient ->getTeamMembers ("ThaUQrOs " );
333334 $ this ->assertNotEmpty ($ members );
@@ -336,7 +337,7 @@ public function testGetTeamMembers()
336337 }
337338 }
338339
339- public function testGetTeams ()
340+ public function testGetTeams (): void
340341 {
341342 $ teams = $ this ->apiClient ->getTeams (["ThaUQrOs " ]);
342343 $ this ->assertNotEmpty ($ teams );
@@ -347,7 +348,7 @@ public function testGetTeams()
347348 }
348349 }
349350
350- public function testGetCategories ()
351+ public function testGetCategories (): void
351352 {
352353 $ items = $ this ->apiClient ->getCategories ();
353354 $ this ->assertNotEmpty ($ items );
@@ -363,7 +364,7 @@ public function testGetCategories()
363364 }
364365 }
365366
366- public function testGetLoaders ()
367+ public function testGetLoaders (): void
367368 {
368369 $ items = $ this ->apiClient ->getLoaders ();
369370 $ this ->assertNotEmpty ($ items );
@@ -379,7 +380,7 @@ public function testGetLoaders()
379380 }
380381 }
381382
382- public function testGetGameVersions ()
383+ public function testGetGameVersions (): void
383384 {
384385 $ items = $ this ->apiClient ->getGameVersions ();
385386 $ this ->assertNotEmpty ($ items );
@@ -395,7 +396,7 @@ public function testGetGameVersions()
395396 }
396397 }
397398
398- public function testGetLicenses ()
399+ public function testGetLicenses (): void
399400 {
400401 $ items = $ this ->apiClient ->getLicenses ();
401402 $ this ->assertNotEmpty ($ items );
@@ -411,7 +412,7 @@ public function testGetLicenses()
411412 }
412413 }
413414
414- public function testGetDonationPlatforms ()
415+ public function testGetDonationPlatforms (): void
415416 {
416417 $ items = $ this ->apiClient ->getDonationPlatforms ();
417418 $ this ->assertNotEmpty ($ items );
@@ -421,7 +422,7 @@ public function testGetDonationPlatforms()
421422 }
422423 }
423424
424- public function testGetReportTypes ()
425+ public function testGetReportTypes (): void
425426 {
426427 $ items = $ this ->apiClient ->getReportTypes ();
427428 $ this ->assertNotEmpty ($ items );
@@ -430,4 +431,4 @@ public function testGetReportTypes()
430431 $ this ->assertNotNull ($ item );
431432 }
432433 }
433- }
434+ }
0 commit comments