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
15 class FileUsageTemporaryDeletionConfigurationUpdateTest extends UpdatePathTestBase {
20 protected static $modules = ['file'];
25 protected function setDatabaseDumpFiles() {
26 $this->databaseDumpFiles = [
27 __DIR__ . '/../../../../../system/tests/fixtures/update/drupal-8.bare.standard.php.gz',
32 * Tests that make_unused_managed_files_temporary conditions are correct.
34 * Verify that the before and after conditions for the variable are correct.
36 public function testUpdateHookN() {
37 $this->assertIdentical($this->config('file.settings')->get('make_unused_managed_files_temporary'), NULL);
39 $this->assertIdentical($this->config('file.settings')->get('make_unused_managed_files_temporary'), FALSE);
40 $this->assertResponse('200');