FileUsageTemporaryDeletionConfigurationUpdateTest.php in Drupal 8
File
core/modules/file/tests/src/Functional/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php
View source
<?php
namespace Drupal\Tests\file\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
class FileUsageTemporaryDeletionConfigurationUpdateTest extends UpdatePathTestBase {
protected static $modules = [
'file',
];
protected function setDatabaseDumpFiles() {
$this->databaseDumpFiles = [
__DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
];
}
public function testUpdateHookN() {
$this
->assertIdentical($this
->config('file.settings')
->get('make_unused_managed_files_temporary'), NULL);
$this
->runUpdates();
$this
->assertIdentical($this
->config('file.settings')
->get('make_unused_managed_files_temporary'), FALSE);
$this
->assertResponse('200');
}
}