Skip to content

Commit

Permalink
MDL-74098 phpunit: Normalise dir separator to match expectations
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Mar 14, 2022
1 parent 967d9b2 commit abc57c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion course/tests/course_delete_modules_test.php
Expand Up @@ -101,7 +101,7 @@ public function test_delete_module_exception() {
} catch (\coding_exception $e) {
// Assert exception.
$this->assertInstanceOf(\coding_exception::class, $e);
$errormsg = $e->getMessage();
$errormsg = str_replace('\\', '/', $e->getMessage()); // Normalise dir separator.
$this->assertStringContainsString('cannotdeletemodulemissinglib', $errormsg);
$this->assertStringContainsString('course/lib.php', $errormsg);
$this->assertStringContainsString('mod/TestModuleToDelete/lib.php is missing', $errormsg);
Expand Down

0 comments on commit abc57c8

Please sign in to comment.