Skip to content

Commit 6808636

Browse files
committed
Merge branch 'master' into move-tests
2 parents 041eb44 + 65cb057 commit 6808636

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

tests/Integration/Client/ClientTest.php

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ protected function isSameProject($a, $b): bool
132132
* Test case for getProjects
133133
* @throws ApiException
134134
*/
135-
public function testGetProjects()
135+
public function testGetProjects(): void
136136
{
137137
$projectList = $this->apiClient->getProjects();
138138
$this->assertFalse($projectList->hasPreviousPage());
@@ -169,7 +169,7 @@ public function testGetProjects()
169169
* Test case for getProjects with a specified category
170170
* @throws ApiException
171171
*/
172-
public function testGetProjectsInCategory()
172+
public function testGetProjectsInCategory(): void
173173
{
174174
$options = new ProjectSearchOptions();
175175
$options->setCategory(ProjectCategory::ADMIN_TOOLS);
@@ -211,7 +211,7 @@ public function testGetProjectsInCategory()
211211
* Test case for getProjects with a specified owner
212212
* @throws ApiException
213213
*/
214-
public function testGetProjectsByOwner()
214+
public function testGetProjectsByOwner(): void
215215
{
216216
$options = new ProjectSearchOptions();
217217
$options->setOwner("Aternos");
@@ -234,7 +234,7 @@ public function testGetProjectsByOwner()
234234
* Test case for getProjects sorting by the shortest duration since the last update
235235
* @throws ApiException
236236
*/
237-
public function testGetRecentlyUpdatedProjects()
237+
public function testGetRecentlyUpdatedProjects(): void
238238
{
239239
$options = new ProjectSearchOptions();
240240
$options->setLimit(10);
@@ -256,7 +256,7 @@ public function testGetRecentlyUpdatedProjects()
256256
* Test case for getProjects sorting by the longest duration since the last update
257257
* @throws ApiException
258258
*/
259-
public function testGetNotRecentlyUpdatedProjects()
259+
public function testGetNotRecentlyUpdatedProjects(): void
260260
{
261261
$options = new ProjectSearchOptions();
262262
$options->setLimit(10);
@@ -278,7 +278,7 @@ public function testGetNotRecentlyUpdatedProjects()
278278
* Test case for getProject
279279
* @throws ApiException
280280
*/
281-
public function testGetProject()
281+
public function testGetProject(): void
282282
{
283283
$project = $this->apiClient->getProject("mclogs");
284284
$this->assertNotNull($project);
@@ -299,7 +299,7 @@ public function testGetProject()
299299
* Test case for fetching members of a project
300300
* @throws ApiException
301301
*/
302-
public function testGetProjectMembers()
302+
public function testGetProjectMembers(): void
303303
{
304304
$project = $this->apiClient->getProject("motdgg");
305305
$this->assertNotNull($project);
@@ -317,7 +317,7 @@ public function testGetProjectMembers()
317317
* Test case for fetching users watching a project
318318
* @throws ApiException
319319
*/
320-
public function testGetProjectWatchers()
320+
public function testGetProjectWatchers(): void
321321
{
322322
$project = $this->apiClient->getProject("motdgg");
323323
$this->assertNotNull($project);
@@ -349,7 +349,7 @@ public function testGetProjectWatchers()
349349
* Test case for fetching project day stats
350350
* @throws ApiException
351351
*/
352-
public function testGetDailyProjectStats()
352+
public function testGetDailyProjectStats(): void
353353
{
354354
if (!getenv("HANGAR_API_KEY")) {
355355
$this->markTestSkipped("This test requires authentication.");
@@ -378,7 +378,7 @@ public function testGetDailyProjectStats()
378378
* This is currently broken because hangar returns an HTTP 500 error: https://github.com/HangarMC/Hangar/issues/1140
379379
* @throws ApiException
380380
*/
381-
public function testGetDailyProjectVersionStats()
381+
public function testGetDailyProjectVersionStats(): void
382382
{
383383
if (!getenv("HANGAR_API_KEY")) {
384384
$this->markTestSkipped("This test requires authentication.");
@@ -413,7 +413,7 @@ public function testGetDailyProjectVersionStats()
413413
* Test case for getUsers
414414
* @throws ApiException
415415
*/
416-
public function testGetUsers()
416+
public function testGetUsers(): void
417417
{
418418
$users = $this->apiClient->getUsers();
419419
$this->assertFalse($users->hasPreviousPage());
@@ -454,7 +454,7 @@ public function testGetUsers()
454454
* Test case for getUser
455455
* @throws ApiException
456456
*/
457-
public function testGetUser()
457+
public function testGetUser(): void
458458
{
459459
$user = $this->apiClient->getUser("Aternos");
460460
$this->assertNotNull($user);
@@ -466,14 +466,14 @@ public function testGetUser()
466466
* Test case for getProjectsWatchedByUser
467467
* @throws ApiException
468468
*/
469-
public function testGetProjectsWatchedByUser()
469+
public function testGetProjectsWatchedByUser(): void
470470
{
471471
$user = $this->apiClient->getUser("Julian");
472472
$this->assertNotNull($user);
473473
$this->assertNotNull($user->getData());
474474
$this->assertEquals("Julian", $user->getData()->getName());
475475

476-
$watched = $user->getWatchedProjects();
476+
$watched = $user->getWatchedProjects();
477477
$this->assertValidResultList($watched);
478478

479479
foreach ($watched as $project) {
@@ -485,14 +485,14 @@ public function testGetProjectsWatchedByUser()
485485
* Test case for getProjectsStarredByUser
486486
* @throws ApiException
487487
*/
488-
public function testGetProjectsStarredByUser()
488+
public function testGetProjectsStarredByUser(): void
489489
{
490490
$user = $this->apiClient->getUser("Julian");
491491
$this->assertNotNull($user);
492492
$this->assertNotNull($user->getData());
493493
$this->assertEquals("Julian", $user->getData()->getName());
494494

495-
$starred = $user->getStarredProjects();
495+
$starred = $user->getStarredProjects();
496496
$this->assertValidResultList($starred);
497497

498498
foreach ($starred as $project) {
@@ -504,10 +504,10 @@ public function testGetProjectsStarredByUser()
504504
* Test case for getStaff
505505
* @throws ApiException
506506
*/
507-
public function testGetStaff()
507+
public function testGetStaff(): void
508508
{
509509
$pagination = (new RequestPagination())->setLimit(1);
510-
$users = $this->apiClient->getStaff("",$pagination);
510+
$users = $this->apiClient->getStaff("", $pagination);
511511
$this->assertFalse($users->hasPreviousPage());
512512

513513
$firstUserOfPage = [];
@@ -546,7 +546,7 @@ public function testGetStaff()
546546
* Test case for getAuthors
547547
* @throws ApiException
548548
*/
549-
public function testGetAuthors()
549+
public function testGetAuthors(): void
550550
{
551551
$pagination = (new RequestPagination())->setLimit(10);
552552
$users = $this->apiClient->getAuthors("", $pagination);
@@ -588,7 +588,7 @@ public function testGetAuthors()
588588
* Test case for getProjectPage and getProjectMainPage
589589
* @throws ApiException
590590
*/
591-
public function testGetProjectPage()
591+
public function testGetProjectPage(): void
592592
{
593593
$page = $this->apiClient->getProjectMainPage("mclogs");
594594
$this->assertNotNull($page);

0 commit comments

Comments
 (0)