diff --git a/tests/php/Dev/Validation/RelationValidationTest.php b/tests/php/Dev/Validation/RelationValidationTest.php index b609b68f0..adc8022e9 100644 --- a/tests/php/Dev/Validation/RelationValidationTest.php +++ b/tests/php/Dev/Validation/RelationValidationTest.php @@ -51,6 +51,9 @@ class RelationValidationTest extends SapphireTest */ 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(); foreach ($config as $name => $value) {