mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
make error message more readable
This commit is contained in:
parent
a1d1e977c5
commit
80e197fe4f
@ -92,7 +92,8 @@ class VersionProviderTest extends SapphireTest
|
|||||||
Config::modify()->set(VersionProvider::class, 'modules', [
|
Config::modify()->set(VersionProvider::class, 'modules', [
|
||||||
'silverstripe/framework' => 'Framework',
|
'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();
|
$result = $provider->getVersion();
|
||||||
$this->assertStringNotContainsString('Framework: 1.2.3', $result);
|
$this->assertStringNotContainsString('Framework: 1.2.3', $result);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user