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:
Michael Kaufmann
2024-01-05 16:12:44 +01:00
parent 1054095b3b
commit ba11b0ab7d

View File

@@ -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']);
}
}
}
}