@@ -99,6 +99,12 @@ public function testGetGame()
9999 $ game = $ this ->apiClient ->getGame (static ::MINECRAFT_GAME_ID );
100100 $ this ->assertEquals (static ::MINECRAFT_GAME_ID , $ game ->getData ()->getId ());
101101 $ this ->assertEquals ("Minecraft " , $ game ->getData ()->getName ());
102+
103+ $ versions = $ game ->getVersions ();
104+ $ this ->assertNotEmpty ($ versions );
105+
106+ $ categories = $ game ->getCategories ();
107+ $ this ->assertNotEmpty ($ categories );
102108 }
103109
104110 /**
@@ -230,6 +236,13 @@ public function testSearchMods()
230236 $ this ->assertEquals (static ::MINECRAFT_GAME_ID , $ mod ->getData ()->getGameId ());
231237 }
232238
239+ $ this ->assertNull ($ mods ->getPreviousPage ());
240+
241+ $ mods = $ mods ->getNextPage ();
242+ foreach ($ mods as $ mod ) {
243+ $ this ->assertEquals (static ::MINECRAFT_GAME_ID , $ mod ->getData ()->getGameId ());
244+ }
245+
233246 $ game = $ this ->apiClient ->getGame (static ::MINECRAFT_GAME_ID );
234247 $ mods = $ game ->searchMods ();
235248 $ this ->assertNotEmpty ($ mods );
@@ -297,7 +310,9 @@ public function testGetMod()
297310 $ mod = $ this ->apiClient ->getMod (static ::MCLOGS_MOD_ID );
298311
299312 $ this ->assertEquals (static ::MCLOGS_MOD_ID , $ mod ->getData ()->getId ());
313+ $ this ->assertEquals (static ::MINECRAFT_GAME_ID , $ mod ->getGame ()->getData ()->getId ());
300314 $ this ->assertEquals (static ::MCLOGS_PRIMARY_CATEGORY_ID , $ mod ->getPrimaryCategory ()->getData ()->getId ());
315+ $ this ->assertEquals (static ::MODS_CATEGORY_ID , $ mod ->getCategoryClass ()->getData ()->getId ());
301316 }
302317
303318 /**
@@ -353,10 +368,17 @@ public function testGetModFile()
353368 $ mod = $ this ->apiClient ->getMod (static ::MCLOGS_MOD_ID );
354369
355370 $ file = $ mod ->getMainFile ();
371+
372+
373+ $ this ->assertEquals ($ mod , $ file ->getMod ());
374+
356375 $ this ->assertEquals ($ mod ->getData ()->getMainFileId (), $ file ->getData ()->getId ());
357376 $ this ->assertNotNull ($ file ->getChangelog ());
377+
358378 $ this ->assertTrue ($ mod ->getData ()->getAllowModDistribution ());
359379 $ this ->assertNotEmpty ($ this ->apiClient ->getModFileDownloadURL ($ mod ->getData ()->getId (), $ file ->getData ()->getId ()));
380+
381+ $ this ->assertNull ($ file ->getServerPack ());
360382 }
361383
362384 /**
0 commit comments