You are here

trait SchemaCheckTestTrait in Drupal 8

Same name in this branch
  1. 8 core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait
  2. 8 core/modules/config/src/Tests/SchemaCheckTestTrait.php \Drupal\config\Tests\SchemaCheckTestTrait

Provides a class for checking configuration schema.

Hierarchy

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\Tests
View source
trait SchemaCheckTestTrait {
  use \Drupal\Tests\SchemaCheckTestTrait;

}

Members

Namesort descending Modifiers Type Description Overrides
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.