function UpdatePathTestBaseTest::testSchemaChecking
Same name in other branches
- 8.9.x core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php \Drupal\FunctionalTests\Update\UpdatePathTestBaseTest::testSchemaChecking()
- 10 core/tests/Drupal/FunctionalTests/Update/UpdatePathTestBaseTest.php \Drupal\FunctionalTests\Update\UpdatePathTestBaseTest::testSchemaChecking()
- 11.x 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\UpdateCode
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'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.