function TestSetupTrait::getConfigSchemaExclusions

Same name in other branches
  1. 9 core/lib/Drupal/Core/Test/TestSetupTrait.php \Drupal\Core\Test\TestSetupTrait::getConfigSchemaExclusions()
  2. 8.9.x core/lib/Drupal/Core/Test/TestSetupTrait.php \Drupal\Core\Test\TestSetupTrait::getConfigSchemaExclusions()
  3. 11.x core/lib/Drupal/Core/Test/TestSetupTrait.php \Drupal\Core\Test\TestSetupTrait::getConfigSchemaExclusions()

Gets the config schema exclusions for this test.

Return value

string[] An array of config object names that are excluded from schema checking.

File

core/lib/Drupal/Core/Test/TestSetupTrait.php, line 199

Class

TestSetupTrait
Provides a trait for shared test setup functionality.

Namespace

Drupal\Core\Test

Code

protected function getConfigSchemaExclusions() {
    $class = static::class;
    $exceptions = [];
    while ($class) {
        if (property_exists($class, 'configSchemaCheckerExclusions')) {
            $exceptions[] = $class::$configSchemaCheckerExclusions;
        }
        $class = get_parent_class($class);
    }
    // Filter out any duplicates.
    return array_unique(array_merge(...$exceptions));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.