function ViewsConfigUpdaterTest::testDeprecationsFlagPersists
Same name and namespace in other branches
- 11.x core/modules/views/tests/src/Functional/ViewsConfigUpdaterTest.php \Drupal\Tests\views\Functional\ViewsConfigUpdaterTest::testDeprecationsFlagPersists()
Tests the deprecationsEnabled flag persists from post_update to presave.
See also
views_test_config_updater_post_update_set_deprecations_disabled
\Drupal\views_test_config_updater\Hook\ViewsTestConfigUpdaterHooks::viewPresave()
File
-
core/
modules/ views/ tests/ src/ Functional/ ViewsConfigUpdaterTest.php, line 66
Class
- ViewsConfigUpdaterTest
- Tests the views config updater service.
Namespace
Drupal\Tests\views\FunctionalCode
public function testDeprecationsFlagPersists() : void {
$this->assertNull(\Drupal::keyValue('views_test_config_updater')->get('deprecations_enabled'));
$this->runUpdates();
$this->assertFalse(\Drupal::keyValue('views_test_config_updater')->get('deprecations_enabled'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.