DeleteAuthorizeSettingsUpdateTest.php in Drupal 9
File
core/modules/system/tests/src/Functional/Update/DeleteAuthorizeSettingsUpdateTest.php
View source
<?php
namespace Drupal\Tests\system\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class DeleteAuthorizeSettingsUpdateTest extends UpdatePathTestBase {
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../fixtures/update/drupal-8.8.0.bare.standard.php.gz',
];
}
public function testSystemAuthorizeRemoval() {
$this
->assertArrayHasKey('filetransfer_default', $this
->config('system.authorize')
->getRawData());
$this
->runUpdates();
$config = $this
->config('system.authorize');
$this
->assertTrue($config
->isNew());
}
}