show available github release only if newer version exists (#4037)

This commit is contained in:
Kevin Papst
2023-05-20 13:49:31 +02:00
committed by GitHub
parent 6bdf27fc9b
commit 2664d6117f
5 changed files with 20 additions and 14 deletions

View File

@@ -32,7 +32,9 @@ class DoctorControllerTest extends ControllerBaseTest
$this->assertAccessIsGranted($client, '/doctor');
$result = $client->getCrawler()->filter('.content .card-header');
self::assertCount(5, $result);
$counter = \count($result);
// this can contain a warning box, that a new release is available
self::assertTrue($counter === 6 || $counter === 5);
}
public function testFlushLogWithInvalidCsrf()