Skip to content

Commit

Permalink
MDL-62251 Task: Make test_cron_delete_from_temp Unix independent
Browse files Browse the repository at this point in the history
  • Loading branch information
rezaies committed May 10, 2018
1 parent da3c761 commit 4dfafed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tests/cronlib_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ public function test_cron_delete_from_temp($nodes, $expected) {
$isvalid = true;
$isvalid = $isvalid && !$iter->isDot();
// Remove the default $CFG->tempdir/backup directory and $CFG->tempdir/.htaccess file from this comparison.
$isvalid = $isvalid && !($iter->isDir() && ($iter->getRealpath() === "{$tmpdir}/backup"));
$isvalid = $isvalid && !($iter->isFile() && ($iter->getRealpath() === "{$tmpdir}/.htaccess"));
$isvalid = $isvalid && !($iter->isDir() && ($iter->getRealpath() === $tmpdir . DIRECTORY_SEPARATOR . 'backup'));
$isvalid = $isvalid && !($iter->isFile() && ($iter->getRealpath() === $tmpdir . DIRECTORY_SEPARATOR . '.htaccess'));
if ($isvalid) {
$actual[] = $iter->getRealPath();
}
Expand Down

0 comments on commit 4dfafed

Please sign in to comment.