X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fuser%2Fsrc%2FTests%2FUserPictureTest.php;fp=web%2Fcore%2Fmodules%2Fuser%2Fsrc%2FTests%2FUserPictureTest.php;h=d8504133bff29661559a2d20022563f6c0d4cb91;hp=6d546f0b4fb62d5bad6bf8410ebd4445e8823cd3;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/user/src/Tests/UserPictureTest.php b/web/core/modules/user/src/Tests/UserPictureTest.php index 6d546f0b4..d8504133b 100644 --- a/web/core/modules/user/src/Tests/UserPictureTest.php +++ b/web/core/modules/user/src/Tests/UserPictureTest.php @@ -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',