public function RestSettingsDeletionUpdateTest::testUpdate in Drupal 9
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());
}