You are here

public function DeleteAuthorizeSettingsUpdateTest::testSystemAuthorizeRemoval in Drupal 9

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());
}