version-check remote-result-testing not yet possible with new workflow of development
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
<?php
|
||||
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
use Froxlor\Api\Commands\Froxlor;
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -19,14 +18,7 @@ class FroxlorTest extends TestCase
|
||||
|
||||
$json_result = Froxlor::getLocal($admin_userdata)->checkUpdate();
|
||||
$result = json_decode($json_result, true)['data'];
|
||||
$this->assertContains($result['isnewerversion'] ?? -1, [0,1]);
|
||||
$this->assertContains($result['isnewerversion'] ?? -1, [0, 1]);
|
||||
$this->assertNotEmpty($result['version']);
|
||||
if ($result['isnewerversion'] == 0) {
|
||||
if (defined('DEV_FROXLOR') && DEV_FROXLOR == 1) {
|
||||
$this->assertEquals("You already have the latest testing-version of Froxlor installed.", $result['additional_info']);
|
||||
} else {
|
||||
$this->assertEquals("You already have the latest version of Froxlor installed.", $result['additional_info']);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user