You are here

public function Thunder2UpdateTest::assertConfigSchema in Thunder 8.5

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/Thunder2UpdateTest.php \Drupal\Tests\thunder\Functional\Thunder2UpdateTest::assertConfigSchema()
  2. 8.3 tests/src/Functional/Thunder2UpdateTest.php \Drupal\Tests\thunder\Functional\Thunder2UpdateTest::assertConfigSchema()
  3. 8.4 tests/src/Functional/Thunder2UpdateTest.php \Drupal\Tests\thunder\Functional\Thunder2UpdateTest::assertConfigSchema()
  4. 6.2.x tests/src/Functional/Thunder2UpdateTest.php \Drupal\Tests\thunder\Functional\Thunder2UpdateTest::assertConfigSchema()
  5. 6.0.x tests/src/Functional/Thunder2UpdateTest.php \Drupal\Tests\thunder\Functional\Thunder2UpdateTest::assertConfigSchema()
  6. 6.1.x tests/src/Functional/Thunder2UpdateTest.php \Drupal\Tests\thunder\Functional\Thunder2UpdateTest::assertConfigSchema()

Asserts the TypedConfigManager has a valid schema for the configuration.

Parameters

\Drupal\Core\Config\TypedConfigManagerInterface $typed_config: The TypedConfigManager.

string $config_name: The configuration name.

array $config_data: The configuration data.

Overrides SchemaCheckTestTrait::assertConfigSchema

File

tests/src/Functional/Thunder2UpdateTest.php, line 64

Class

Thunder2UpdateTest
Tests Thunder updates from 2.0 to current.

Namespace

Drupal\Tests\thunder\Functional

Code

public function assertConfigSchema(TypedConfigManagerInterface $typed_config, $config_name, $config_data) {

  // Skip specific config files that have incomplete or incorrect schemas.
  // @todo file issues or create updates to fix these.
  if (in_array($config_name, $this->configSchemaCheckSkip, TRUE)) {
    return;
  }
  return parent::assertConfigSchema($typed_config, $config_name, $config_data);
}