You are here

public function UpdatePathTestBaseTest::testSchemaChecking in Drupal 10

Same name and namespace in other branches
  1. 8 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php \Drupal\FunctionalTests\Update\UpdatePathTestBaseTest::testSchemaChecking()
  2. 9 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php \Drupal\FunctionalTests\Update\UpdatePathTestBaseTest::testSchemaChecking()

Tests that schema can be excluded from testing.

See also

\Drupal\FunctionalTests\Update\UpdatePathTestBase::runUpdates()

\Drupal\Core\Test\TestSetupTrait::$configSchemaCheckerExclusions

File

core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php, line 217

Class

UpdatePathTestBaseTest
Tests the update path base class.

Namespace

Drupal\FunctionalTests\Update

Code

public function testSchemaChecking() {

  // Create some configuration that should be skipped.
  $this
    ->config('config_schema_test.noschema')
    ->set('foo', 'bar')
    ->save();
  $this
    ->runUpdates();
  $this
    ->assertSame('bar', $this
    ->config('config_schema_test.noschema')
    ->get('foo'));
}