make error message more readable

This commit is contained in:
Thomas Portelange 2024-02-26 10:21:23 +01:00 committed by GitHub
parent a1d1e977c5
commit 80e197fe4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ class VersionProviderTest extends SapphireTest
Config::modify()->set(VersionProvider::class, 'modules', [
'silverstripe/framework' => 'Framework',
]);
$this->assertTrue(Comparator::greaterThan($provider->getModuleVersion('silverstripe/framework'), '5.0.0'));
$moduleVersion = $provider->getModuleVersion('silverstripe/framework');
$this->assertTrue(Comparator::greaterThanOrEqualTo($moduleVersion, '5.0.0'), "Expected > 5.0.0 but got $moduleVersion");
$result = $provider->getVersion();
$this->assertStringNotContainsString('Framework: 1.2.3', $result);
}