You are here

public function SchemaCheckTestTrait::assertConfigSchemaByName in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/src/Tests/SchemaCheckTestTrait.php \Drupal\config\Tests\SchemaCheckTestTrait::assertConfigSchemaByName()

Asserts configuration, specified by name, has a valid schema.

Parameters

string $config_name: The configuration name.

1 call to SchemaCheckTestTrait::assertConfigSchemaByName()
FilterNumericWebTest::testFilterNumericUI in core/modules/views_ui/src/Tests/FilterNumericWebTest.php
Tests the filter numeric UI.

File

core/modules/config/src/Tests/SchemaCheckTestTrait.php, line 59
Contains \Drupal\config\Tests\SchemaCheckTestTrait.

Class

SchemaCheckTestTrait
Provides a class for checking configuration schema.

Namespace

Drupal\config\Tests

Code

public function assertConfigSchemaByName($config_name) {
  $config = $this
    ->config($config_name);
  $this
    ->assertConfigSchema(\Drupal::service('config.typed'), $config
    ->getName(), $config
    ->get());
}