3 namespace Drupal\Tests\file\Functional\Update;
5 use Drupal\FunctionalTests\Update\UpdatePathTestBase;
8 * Tests the upgrade path for setting the file usage deletion configuration.
10 * @see https://www.drupal.org/node/2801777
14 class FileUsageTemporaryDeletionConfigurationUpdateTest extends UpdatePathTestBase {
19 protected static $modules = ['file'];
24 protected function setDatabaseDumpFiles() {
25 $this->databaseDumpFiles = [
26 __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
31 * Tests that make_unused_managed_files_temporary conditions are correct.
33 * Verify that the before and after conditions for the variable are correct.
35 public function testUpdateHookN() {
36 $this->assertIdentical($this->config('file.settings')->get('make_unused_managed_files_temporary'), NULL);
38 $this->assertIdentical($this->config('file.settings')->get('make_unused_managed_files_temporary'), FALSE);
39 $this->assertResponse('200');