diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-12-14 11:28:59 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-12-14 11:28:59 +0100 |
commit | 158f442f4f99a4c273270f2a188657a44d493061 (patch) | |
tree | 4aee3be38c8455c5d25c80bb6c7301d99cc4f137 /tests | |
parent | f2d5927ea3bbd2ccd7152bc3638b25b5e577f94e (diff) | |
download | nextcloud-server-158f442f4f99a4c273270f2a188657a44d493061.tar.gz nextcloud-server-158f442f4f99a4c273270f2a188657a44d493061.zip |
Test fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Template/SCSSCacherTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Template/SCSSCacherTest.php b/tests/lib/Template/SCSSCacherTest.php index 345972bb1af..5ee9af2a409 100644 --- a/tests/lib/Template/SCSSCacherTest.php +++ b/tests/lib/Template/SCSSCacherTest.php @@ -185,7 +185,7 @@ class SCSSCacherTest extends \Test\TestCase { $fileDeps->expects($this->any())->method('getSize')->willReturn(1); $gzFile = $this->createMock(ISimpleFile::class); - $filePrefix = md5('http://localhost/nextcloud') . '-'; + $filePrefix = substr(md5('http://localhost/nextcloud'), 0, 8) . '-'; $folder->method('getFile') ->will($this->returnCallback(function($name) use ($file, $fileDeps, $gzFile, $filePrefix) { if ($name === $filePrefix.'styles.css') { @@ -385,7 +385,7 @@ class SCSSCacherTest extends \Test\TestCase { $this->urlGenerator->expects($this->once()) ->method('linkToRoute') ->with('core.Css.getCss', [ - 'fileName' => md5('http://localhost/nextcloud') . '-styles.css', + 'fileName' => substr(md5('http://localhost/nextcloud'), 0, 8) . '-styles.css', 'appName' => $appName ]) ->willReturn(\OC::$WEBROOT . $result); |