mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-43018 Fix unit tests for minify changes.
This commit is contained in:
parent
df68e73824
commit
bd3811f1b4
1 changed files with 2 additions and 2 deletions
|
@ -110,11 +110,11 @@ function hm()
|
||||||
|
|
||||||
$files = array($testfile1, $testfile2);
|
$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);
|
$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($testfile1);
|
||||||
unlink($testfile2);
|
unlink($testfile2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue