Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / file / tests / src / Kernel / DeleteTest.php
index 3b868c0ad20f4320b14e2af070d537f15a909885..de5a5bc045d80af2b2806149495abe1e1e293836 100644 (file)
@@ -28,6 +28,11 @@ class DeleteTest extends FileManagedUnitTestBase {
    * Tries deleting a file that is in use.
    */
   public function testInUse() {
+    // This test expects unused managed files to be marked as a temporary file
+    // and then deleted up by file_cron().
+    $this->config('file.settings')
+      ->set('make_unused_managed_files_temporary', TRUE)
+      ->save();
     $file = $this->createFile();
     $file_usage = $this->container->get('file.usage');
     $file_usage->add($file, 'testing', 'test', 1);