You are here

public function SchemaCheckTestTrait::assertConfigSchemaByName in Drupal 8

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

5 calls to SchemaCheckTestTrait::assertConfigSchemaByName()
DateTimeSchemaTest::testDateTimeSchema in core/modules/datetime/tests/src/Kernel/Views/DateTimeSchemaTest.php
Test 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
Test datetime grouped filter UI.
FilterDateTest::_testFilterDateUI in core/modules/views/tests/src/Functional/Handler/FilterDateTest.php
Test 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 54

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());
}