Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / file / src / Tests / FileListingTest.php
index e348949a737dc37ee05d93aed223f8567965d85e..cca21c5a4c652fd0196abe114163e449935d8907 100644 (file)
@@ -30,6 +30,11 @@ class FileListingTest extends FileFieldTestBase {
   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']);