function UsageTest::testRemoveUsageNonTemporary
Same name in other branches
- 9 core/modules/file/tests/src/Kernel/UsageTest.php \Drupal\Tests\file\Kernel\UsageTest::testRemoveUsageNonTemporary()
- 8.9.x core/modules/file/tests/src/Kernel/UsageTest.php \Drupal\Tests\file\Kernel\UsageTest::testRemoveUsageNonTemporary()
- 10 core/modules/file/tests/src/Kernel/UsageTest.php \Drupal\Tests\file\Kernel\UsageTest::testRemoveUsageNonTemporary()
Tests file usage deletion when files are made temporary.
File
-
core/
modules/ file/ tests/ src/ Kernel/ UsageTest.php, line 96
Class
- UsageTest
- Tests file usage functions.
Namespace
Drupal\Tests\file\KernelCode
public function testRemoveUsageNonTemporary() : void {
$this->config('file.settings')
->set('make_unused_managed_files_temporary', FALSE)
->save();
$file = $this->doTestRemoveUsage();
$this->assertFalse($file->isTemporary());
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.