trait SchemaCheckTestTrait
Same name in this branch
- 8.9.x core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait
Same name and namespace in other branches
- 11.x core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait
- 10 core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait
- 9 core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait
Provides a class for checking configuration schema.
Hierarchy
- trait \Drupal\config\Tests\SchemaCheckTestTrait uses \Drupal\Tests\SchemaCheckTestTrait
Deprecated
in drupal:8.3.0 and is removed from drupal:9.0.0. Use \Drupal\Tests\SchemaCheckTestTrait instead.
File
-
core/
modules/ config/ src/ Tests/ SchemaCheckTestTrait.php, line 13
Namespace
Drupal\config\TestsView source
trait SchemaCheckTestTrait {
use \Drupal\Tests\SchemaCheckTestTrait;
}
Members
| Title Sort descending | Modifiers | Object type | Summary |
|---|---|---|---|
| SchemaCheckTestTrait::assertConfigSchema | public | function | Asserts the TypedConfigManager has a valid schema for the configuration. |
| SchemaCheckTestTrait::assertConfigSchemaByName | public | function | Asserts configuration, specified by name, has a valid schema. |
| SchemaCheckTrait::$configName | protected | property | The configuration object name under test. |
| SchemaCheckTrait::$schema | protected | property | The config schema wrapper object for the configuration object under test. |
| SchemaCheckTrait::checkConfigSchema | public | function | Checks the TypedConfigManager has a valid schema for the configuration. |
| SchemaCheckTrait::checkValue | protected | function | Helper method to check data type. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.