aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-12-14 11:32:53 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-12-14 11:32:53 +0100
commitb8778b0d856ecde2c777f7d6f7b7971927217bce (patch)
tree930b0146bea66d0e80522acf258929f03608e711
parent158f442f4f99a4c273270f2a188657a44d493061 (diff)
downloadnextcloud-server-b8778b0d856ecde2c777f7d6f7b7971927217bce.tar.gz
nextcloud-server-b8778b0d856ecde2c777f7d6f7b7971927217bce.zip
Test fixes 2
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
-rw-r--r--tests/lib/Template/SCSSCacherTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Template/SCSSCacherTest.php b/tests/lib/Template/SCSSCacherTest.php
index 5ee9af2a409..3825bc44c59 100644
--- a/tests/lib/Template/SCSSCacherTest.php
+++ b/tests/lib/Template/SCSSCacherTest.php
@@ -88,7 +88,7 @@ class SCSSCacherTest extends \Test\TestCase {
$fileDeps = $this->createMock(ISimpleFile::class);
$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($path) use ($file, $gzfile, $filePrefix) {
@@ -122,7 +122,7 @@ class SCSSCacherTest extends \Test\TestCase {
$file->expects($this->any())->method('getSize')->willReturn(1);
$fileDeps = $this->createMock(ISimpleFile::class);
$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($path) use ($file, $gzfile, $filePrefix) {
@@ -152,7 +152,7 @@ class SCSSCacherTest extends \Test\TestCase {
$fileDeps = $this->createMock(ISimpleFile::class);
$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) {