getContent(); $this->assertJson($dataJson); $data = json_decode($dataJson); $this->assertEquals(8, $data[0]->id); $this->assertEquals("https://download.maniacontrol.com/plugins/8_Dedimania_Plugin_v0.1.zip", $data[0]->currentVersion->url); } public function testGetPluginUpdates() { $maniaControl = new ManiaControl(); $updateManager = $maniaControl->getUpdateManager(); $pluginUpdateManager = $updateManager->getPluginUpdateManager(); //No Plugins Running so No new Updates $this->assertFalse($pluginUpdateManager->getPluginsUpdates()); $maniaControl->run(5); $this->assertNotFalse($pluginUpdateManager->getPluginsUpdates()); //TODO load Plugin manually and then test (could happen that no update is existing) } }