Skip to content

Commit

Permalink
fixup! Various path normalisations
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols committed Apr 1, 2024
1 parent 9e04ff2 commit 7103290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moodle/Tests/Util/MoodleUtilTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -355,14 +355,14 @@ public function getMoodleRootProvider() {
],
'moodleRoot_from_fixtures' => [
'config' => ['moodleRoot' => dirname(__FILE__) . '/fixtures/moodleutil/good'],
'return' => ['value' => dirname(__FILE__) . '/fixtures/moodleutil/good'],
'return' => ['value' => str_replace('\\', '/', dirname(__FILE__)) . '/fixtures/moodleutil/good'],
'requireRealMoodle' => false,
],

// Passing a file to check.
'moodleRoot_pass_file' => [
'config' => ['file' => dirname(__FILE__) . '/fixtures/moodleutil/good/lib/lib.php'],
'return' => ['value' => dirname(__FILE__) . '/fixtures/moodleutil/good'],
'return' => ['value' => str_replace('\\', '/', dirname(__FILE__)) . '/fixtures/moodleutil/good'],
'requireRealMoodle' => false,
],

Expand Down

0 comments on commit 7103290

Please sign in to comment.