SchemaConfigListenerTest.php

Same filename in this branch
  1. 11.x core/tests/Drupal/FunctionalTests/Core/Config/SchemaConfigListenerTest.php
Same filename in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/SchemaConfigListenerTest.php
  2. 9 core/tests/Drupal/FunctionalTests/Core/Config/SchemaConfigListenerTest.php
  3. 8.9.x core/tests/Drupal/KernelTests/Core/Config/SchemaConfigListenerTest.php
  4. 8.9.x core/tests/Drupal/FunctionalTests/Core/Config/SchemaConfigListenerTest.php
  5. 10 core/tests/Drupal/KernelTests/Core/Config/SchemaConfigListenerTest.php
  6. 10 core/tests/Drupal/FunctionalTests/Core/Config/SchemaConfigListenerTest.php

Namespace

Drupal\KernelTests\Core\Config

File

core/tests/Drupal/KernelTests/Core/Config/SchemaConfigListenerTest.php

View source
<?php

declare (strict_types=1);
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}
     */
    protected static $modules = [
        'config_test',
    ];
    
    /**
     * {@inheritdoc}
     */
    protected function setUp() : void {
        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',
        ]);
    }

}

Classes

Title Deprecated Summary
SchemaConfigListenerTest Tests the functionality of ConfigSchemaChecker in KernelTestBase tests.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.