This commit is contained in:
Sara Arjona 2023-12-05 16:01:49 +01:00
commit 7ac70d80b2
No known key found for this signature in database

View file

@ -106,8 +106,8 @@ class setuplib_test extends \advanced_testcase {
// Delete existing localcache directory, as this is testing first call // Delete existing localcache directory, as this is testing first call
// to make_localcache_directory. // to make_localcache_directory.
remove_dir($CFG->localcachedir, true); $this->assertTrue(remove_dir($CFG->localcachedir));
$dir = make_localcache_directory('', false); $dir = make_localcache_directory('');
$this->assertSame($CFG->localcachedir, $dir); $this->assertSame($CFG->localcachedir, $dir);
$this->assertFileDoesNotExist("$CFG->localcachedir/.htaccess"); $this->assertFileDoesNotExist("$CFG->localcachedir/.htaccess");
$this->assertFileExists($timestampfile); $this->assertFileExists($timestampfile);