protected function FileListingTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/file/tests/src/Functional/FileListingTest.php \Drupal\Tests\file\Functional\FileListingTest::setUp()
Overrides FileFieldTestBase::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() {
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',
]);
}