Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / user / src / Tests / UserPictureTest.php
index 6d546f0b4fb62d5bad6bf8410ebd4445e8823cd3..d8504133bff29661559a2d20022563f6c0d4cb91 100644 (file)
@@ -33,6 +33,12 @@ class UserPictureTest extends WebTestBase {
   protected function setUp() {
     parent::setUp();
 
+    // This test expects unused managed files to be marked temporary and then
+    // cleaned up by file_cron().
+    $this->config('file.settings')
+      ->set('make_unused_managed_files_temporary', TRUE)
+      ->save();
+
     $this->webUser = $this->drupalCreateUser([
       'access content',
       'access comments',