Files
Froxlor/tests/Froxlor/FroxlorTest.php
Michael Kaufmann 26510f0745 removing more ticket-stuff; update all unit-tests
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2018-12-19 19:42:50 +01:00

25 lines
586 B
PHP

<?php
use PHPUnit\Framework\TestCase;
use Froxlor\Api\Commands\Froxlor;
/**
*
* @covers \Froxlor\Api\ApiCommand
* @covers \Froxlor\Api\ApiParameter
* @covers \Froxlor\Froxlor
*/
class FroxlorTest extends TestCase
{
public function testFroxlorcheckUpdate()
{
global $admin_userdata;
$json_result = Froxlor::getLocal($admin_userdata)->checkUpdate();
$result = json_decode($json_result, true)['data'];
$this->assertEquals(0, $result['isnewerversion']);
$this->assertEquals("You already have the latest version of Froxlor installed.", $result['additional_info']);
}
}