function SchemaCheckTestTrait::assertConfigSchemaByName

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

5 calls to SchemaCheckTestTrait::assertConfigSchemaByName()
DateTimeSchemaTest::testDateTimeSchema in core/modules/datetime/tests/src/Kernel/Views/DateTimeSchemaTest.php
Tests argument plugin schema.
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.
FilterNumericWebTest::testFilterNumericUI in core/modules/views_ui/tests/src/Functional/FilterNumericWebTest.php
Tests the filter numeric UI.

File

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

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.