function RestSettingsDeletionUpdateTest::testUpdate
Ensures that update hook is run for "rest" module.
File
-
core/
modules/ rest/ tests/ src/ Functional/ Update/ RestSettingsDeletionUpdateTest.php, line 26
Class
- RestSettingsDeletionUpdateTest
- Ensures that update hook is run properly for deleting obsolete REST settings.
Namespace
Drupal\Tests\rest\Functional\UpdateCode
public function testUpdate() {
$rest_settings = $this->config('rest.settings');
$this->assertFalse($rest_settings->isNew());
$this->runUpdates();
$rest_settings = \Drupal::configFactory()->get('rest.settings');
$this->assertTrue($rest_settings->isNew());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.