function DeleteAuthorizeSettingsUpdateTest::testSystemAuthorizeRemoval

Tests system_post_update_delete_authorize_settings().

File

core/modules/system/tests/src/Functional/Update/DeleteAuthorizeSettingsUpdateTest.php, line 29

Class

DeleteAuthorizeSettingsUpdateTest
Tests the upgrade path for removal the system.authorize configuration.

Namespace

Drupal\Tests\system\Functional\Update

Code

public function testSystemAuthorizeRemoval() {
    $this->assertArrayHasKey('filetransfer_default', $this->config('system.authorize')
        ->getRawData());
    $this->runUpdates();
    $config = $this->config('system.authorize');
    $this->assertTrue($config->isNew());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.