protected function FileListingTest::setUp in Drupal 10
Same name and namespace in other branches
- 8 core/modules/file/tests/src/Functional/FileListingTest.php \Drupal\Tests\file\Functional\FileListingTest::setUp()
- 9 core/modules/file/tests/src/Functional/FileListingTest.php \Drupal\Tests\file\Functional\FileListingTest::setUp()
File
- core/
modules/ file/ tests/ src/ Functional/ FileListingTest.php, line 35
Class
- FileListingTest
- Tests file listing page functionality.
Namespace
Drupal\Tests\file\FunctionalCode
protected function setUp() : void {
parent::setUp();
// This test expects unused managed files to be marked as a temporary file.
$this
->config('file.settings')
->set('make_unused_managed_files_temporary', TRUE)
->save();
$this->adminUser = $this
->drupalCreateUser([
'access files overview',
'bypass node access',
]);
$this->baseUser = $this
->drupalCreateUser();
$this
->createFileField('file', 'node', 'article', [], [
'file_extensions' => 'txt png',
]);
}