Merge pull request #10420 from creative-commoners/pulls/4.11/ignore-test

MNT Skip test if Page class missing
This commit is contained in:
Guy Sartorelli 2022-07-25 17:06:48 +12:00 committed by GitHub
commit 92d8180c69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

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