Version 1
[yaffs-website] / web / core / tests / Drupal / KernelTests / Core / Config / SchemaConfigListenerTest.php
diff --git a/web/core/tests/Drupal/KernelTests/Core/Config/SchemaConfigListenerTest.php b/web/core/tests/Drupal/KernelTests/Core/Config/SchemaConfigListenerTest.php
new file mode 100644 (file)
index 0000000..2674a3c
--- /dev/null
@@ -0,0 +1,33 @@
+<?php
+
+namespace Drupal\KernelTests\Core\Config;
+
+use Drupal\KernelTests\KernelTestBase;
+use Drupal\Tests\Traits\Core\Config\SchemaConfigListenerTestTrait;
+
+/**
+ * Tests the functionality of ConfigSchemaChecker in KernelTestBase tests.
+ *
+ * @group config
+ */
+class SchemaConfigListenerTest extends KernelTestBase {
+
+  use SchemaConfigListenerTestTrait;
+
+  /**
+   * {@inheritdoc}
+   */
+  public static $modules = ['config_test'];
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setUp();
+    // Install configuration provided by the module so that the order of the
+    // config keys is the same as
+    // \Drupal\FunctionalTests\Core\Config\SchemaConfigListenerTest.
+    $this->installConfig(['config_test']);
+  }
+
+}