summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/lib/Template/SCSSCacherTest.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/lib/Template/SCSSCacherTest.php b/tests/lib/Template/SCSSCacherTest.php
index 149222f6b8e..2389d8ec881 100644
--- a/tests/lib/Template/SCSSCacherTest.php
+++ b/tests/lib/Template/SCSSCacherTest.php
@@ -259,7 +259,10 @@ class SCSSCacherTest extends \Test\TestCase {
$folder = $this->createMock(ISimpleFolder::class);
$folder->expects($this->at(0))->method('getFile')->with($fileNameCSS)->willThrowException(new NotFoundException());
- $actual = self::invokePrivate($this->scssCacher, 'isCached', [$fileNameCSS, $folder]);
+ $this->appData->expects($this->any())
+ ->method('getFolder')
+ ->willReturn($folder);
+ $actual = self::invokePrivate($this->scssCacher, 'isCached', [$fileNameCSS, 'core']);
$this->assertFalse($actual);
}
@@ -280,7 +283,10 @@ class SCSSCacherTest extends \Test\TestCase {
}
}));
- $actual = self::invokePrivate($this->scssCacher, 'isCached', [$fileNameCSS, $folder]);
+ $this->appData->expects($this->any())
+ ->method('getFolder')
+ ->willReturn($folder);
+ $actual = self::invokePrivate($this->scssCacher, 'isCached', [$fileNameCSS, 'core']);
$this->assertFalse($actual);
}
public function testCacheNoFile() {