You are here

public function FileUsageTemporaryDeletionConfigurationUpdateTest::testUpdateHookN in Drupal 8

Tests that make_unused_managed_files_temporary conditions are correct.

Verify that the before and after conditions for the variable are correct.

File

core/modules/file/tests/src/Functional/Update/FileUsageTemporaryDeletionConfigurationUpdateTest.php, line 36

Class

FileUsageTemporaryDeletionConfigurationUpdateTest
Tests the upgrade path for setting the file usage deletion configuration.

Namespace

Drupal\Tests\file\Functional\Update

Code

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