Fixed Bug in Windows in Webreader
This commit is contained in:
28
Tests/core/Update/PluginUpdateManagerTest.php
Normal file
28
Tests/core/Update/PluginUpdateManagerTest.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Lukas
|
||||
* Date: 15. Apr. 2017
|
||||
* Time: 22:44
|
||||
*/
|
||||
|
||||
namespace Tests\core\Update;
|
||||
|
||||
use ManiaControl\ManiaControl;
|
||||
use ManiaControl\Update\PluginUpdateManager;
|
||||
use ManiaControl\Utils\WebReader;
|
||||
|
||||
class PluginUpdateManagerTest extends \PHPUnit_Framework_TestCase {
|
||||
public function testGetPluginUpdates(){
|
||||
$maniaControl = new ManiaControl();
|
||||
$updateManager = $maniaControl->getUpdateManager();
|
||||
$pluginUpdateManager = $updateManager->getPluginUpdateManager();
|
||||
|
||||
var_dump($pluginUpdateManager->getPluginsUpdates());
|
||||
|
||||
$url = ManiaControl::URL_WEBSERVICE . 'plugins';
|
||||
$response = WebReader::getUrl($url);
|
||||
$dataJson = $response->getContent();
|
||||
var_dump($dataJson);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user