function SchemaCheckTestTrait::assertConfigSchemaByName
Same name in other branches
- 9 core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait::assertConfigSchemaByName()
- 8.9.x core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait::assertConfigSchemaByName()
- 10 core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait::assertConfigSchemaByName()
Asserts configuration, specified by name, has a valid schema.
Parameters
string $config_name: The configuration name.
6 calls to SchemaCheckTestTrait::assertConfigSchemaByName()
- DateTimeSchemaTest::testDateTimeSchema in core/
modules/ datetime/ tests/ src/ Kernel/ Views/ DateTimeSchemaTest.php - Tests argument plugin schema.
- DisplayPathTest::testUseAdminTheme in core/
modules/ views_ui/ tests/ src/ Functional/ DisplayPathTest.php - Tests the "Use the administration theme" configuration.
- FieldTest::testFormatterChanging in core/
modules/ views/ tests/ src/ FunctionalJavascript/ Plugin/ views/ Handler/ FieldTest.php - FilterDateTest::_testFilterDatetimeUI in core/
modules/ views/ tests/ src/ Functional/ Handler/ FilterDateTest.php - Tests datetime grouped filter UI.
- FilterDateTest::_testFilterDateUI in core/
modules/ views/ tests/ src/ Functional/ Handler/ FilterDateTest.php - Tests date filter UI.
File
-
core/
tests/ Drupal/ Tests/ SchemaCheckTestTrait.php, line 49
Class
- SchemaCheckTestTrait
- Provides a class for checking configuration schema.
Namespace
Drupal\TestsCode
public function assertConfigSchemaByName($config_name) {
$config = $this->config($config_name);
$this->assertConfigSchema(\Drupal::service('config.typed'), $config->getName(), $config->get());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.