summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/Template/SCSSCacherTest.php4
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);