function SchemaCheckTestTrait::assertConfigSchemaByName

Same name in other branches
  1. 9 core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait::assertConfigSchemaByName()
  2. 8.9.x core/tests/Drupal/Tests/SchemaCheckTestTrait.php \Drupal\Tests\SchemaCheckTestTrait::assertConfigSchemaByName()
  3. 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.

... See full list

File

core/tests/Drupal/Tests/SchemaCheckTestTrait.php, line 49

Class

SchemaCheckTestTrait
Provides a class for checking configuration schema.

Namespace

Drupal\Tests

Code

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.