You are here

public function SchemaCheckTestTrait::assertConfigSchemaByName in Drupal 10

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

2 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

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