mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-43018 Fix unit tests for minify changes.
This commit is contained in:
parent
df68e73824
commit
bd3811f1b4
@ -110,11 +110,11 @@ function hm()
|
||||
|
||||
$files = array($testfile1, $testfile2);
|
||||
|
||||
$this->assertSame("function hm(){}\nfunction oh(){}", core_minify::js_files($files));
|
||||
$this->assertSame("function hm(){};\nfunction oh(){}", core_minify::js_files($files));
|
||||
|
||||
$files = array($testfile1, $testfile2, $testfile3);
|
||||
|
||||
$this->assertStringStartsWith("function hm(){}\nfunction oh(){}\n\n\n// Cannot read JS file ", @core_minify::js_files($files));
|
||||
$this->assertStringStartsWith("function hm(){};\nfunction oh(){};\n\n\n// Cannot read JS file ", @core_minify::js_files($files));
|
||||
|
||||
unlink($testfile1);
|
||||
unlink($testfile2);
|
||||
|
Loading…
x
Reference in New Issue
Block a user