diff --git a/tests/Froxlor/FroxlorTest.php b/tests/Froxlor/FroxlorTest.php index 1719256dfd..0190b5e999 100644 --- a/tests/Froxlor/FroxlorTest.php +++ b/tests/Froxlor/FroxlorTest.php @@ -19,11 +19,14 @@ public function testFroxlorcheckUpdate() $json_result = Froxlor::getLocal($admin_userdata)->checkUpdate(); $result = json_decode($json_result, true)['data']; - $this->assertEquals(0, $result['isnewerversion']); - 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']); + $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']); + } } } }