mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Fix unit tests to pass the folder now via the appData dependency
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
6686ca9b2a
commit
801e5a4523
1 changed files with 8 additions and 2 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue