Skip to content

Commit

Permalink
Merge branch 'wip-mdl-45204-m' of git://github.com/rajeshtaneja/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy committed Nov 3, 2014
2 parents b7f75a9 + 54957bd commit d9fb78c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/tests/setuplib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@ public function test_localcachedir() {
$this->setCurrentTimeStart();
$timestampfile = "$CFG->localcachedir/.lastpurged";

// Delete existing localcache directory, as this is testing first call
// to make_localcache_directory.
remove_dir($CFG->localcachedir, true);
$dir = make_localcache_directory('', false);
$this->assertSame($CFG->localcachedir, $dir);
$this->assertFileNotExists("$CFG->localcachedir/.htaccess");
Expand Down

0 comments on commit d9fb78c

Please sign in to comment.