MNT Skip test if Page class missing

This commit is contained in:
Steve Boyd 2022-07-25 16:35:28 +12:00
parent f6693d4ea5
commit 24daf3ae83

View File

@ -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) {