mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
MNT Skip test if Page class missing
This commit is contained in:
parent
f6693d4ea5
commit
24daf3ae83
@ -51,6 +51,9 @@ class RelationValidationTest extends SapphireTest
|
|||||||
*/
|
*/
|
||||||
public function testIgnoredClass(string $class, ?string $relation, array $config, bool $expected): void
|
public function testIgnoredClass(string $class, ?string $relation, array $config, bool $expected): void
|
||||||
{
|
{
|
||||||
|
if (!class_exists($class)) {
|
||||||
|
$this->markTestSkipped("This test requires the $class class");
|
||||||
|
}
|
||||||
$service = RelationValidationService::singleton();
|
$service = RelationValidationService::singleton();
|
||||||
|
|
||||||
foreach ($config as $name => $value) {
|
foreach ($config as $name => $value) {
|
||||||
|
Loading…
Reference in New Issue
Block a user