You are here

protected function KernelTestBase::getConfigSchemaExclusions in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::getConfigSchemaExclusions()
  2. 9 core/tests/Drupal/KernelTests/KernelTestBase.php \Drupal\KernelTests\KernelTestBase::getConfigSchemaExclusions()

Gets the config schema exclusions for this test.

Return value

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

1 call to KernelTestBase::getConfigSchemaExclusions()
KernelTestBase::register in core/tests/Drupal/KernelTests/KernelTestBase.php
Registers test-specific services.

File

core/tests/Drupal/KernelTests/KernelTestBase.php, line 601

Class

KernelTestBase
Base class for functional integration tests.

Namespace

Drupal\KernelTests

Code

protected function getConfigSchemaExclusions() {
  $class = static::class;
  $exceptions = [];
  while ($class) {
    if (property_exists($class, 'configSchemaCheckerExclusions')) {
      $exceptions = array_merge($exceptions, $class::$configSchemaCheckerExclusions);
    }
    $class = get_parent_class($class);
  }

  // Filter out any duplicates.
  return array_unique($exceptions);
}