Mock method of actual cache

Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
Morris Jobke 2018-03-09 15:36:53 +01:00
parent 43243380f1
commit 17f75d6797
No known key found for this signature in database
GPG Key ID: FE03C3A163FEDE68
1 changed files with 1 additions and 5 deletions

View File

@ -466,11 +466,7 @@ class SCSSCacherTest extends \Test\TestCase {
->method('getDirectoryListing')
->willReturn([$file]);
$cache = $this->createMock(ICache::class);
$this->cacheFactory->expects($this->once())
->method('createDistributed')
->willReturn($cache);
$cache->expects($this->once())
$this->depsCache->expects($this->once())
->method('clear')
->with('');
$this->appData->expects($this->once())