You are here

public function NodeorderConfigSchemaTest::testConfigSchema in Node Order 8

Tests config schema.

@dataProvider configDataProvider

File

tests/src/Kernel/NodeorderConfigSchemaTest.php, line 51

Class

NodeorderConfigSchemaTest
Tests the nodeorder config schema.

Namespace

Drupal\Tests\nodeorder\Kernel

Code

public function testConfigSchema($data, $expected) {
  $config = $this->configuration
    ->setData($data);
  $actual = TRUE;
  $message = NULL;
  try {
    $this
      ->assertConfigSchema($this->typedConfig, $config
      ->getName(), $config
      ->get());
  } catch (\Throwable $exception) {
    $actual = FALSE;
    $message = $exception
      ->getMessage();
  }
  $this
    ->assertEquals($expected, $actual, $message);
}