function FileUsageTemporaryDeletionConfigurationUpdateTest::testUpdateHookN

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.