diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-03-08 21:12:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-08 21:12:54 +0100 |
commit | 7a7c350a2d284f418a1e52d80bfaaaaff12330b0 (patch) | |
tree | 6081899002de29347a16f585425c71cb69c3c9d5 /tests/lib/Template/JSResourceLocatorTest.php | |
parent | 7e374200c4eef0e2b61076857acaed5fcdee286a (diff) | |
parent | 573b94076103b2f3740ee243a2089279600523d4 (diff) | |
download | nextcloud-server-7a7c350a2d284f418a1e52d80bfaaaaff12330b0.tar.gz nextcloud-server-7a7c350a2d284f418a1e52d80bfaaaaff12330b0.zip |
Merge pull request #8716 from nextcloud/fix-cache-prefixing
Remove base url from global cache prefix
Diffstat (limited to 'tests/lib/Template/JSResourceLocatorTest.php')
-rw-r--r-- | tests/lib/Template/JSResourceLocatorTest.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/lib/Template/JSResourceLocatorTest.php b/tests/lib/Template/JSResourceLocatorTest.php index 6841ee2fee3..f5dff62729f 100644 --- a/tests/lib/Template/JSResourceLocatorTest.php +++ b/tests/lib/Template/JSResourceLocatorTest.php @@ -25,8 +25,8 @@ namespace Test\Template; use OC\Template\JSCombiner; use OCP\Files\IAppData; +use OCP\ICacheFactory; use OCP\IURLGenerator; -use OCP\ICache; use OC\SystemConfig; use OCP\ILogger; use OC\Template\JSResourceLocator; @@ -38,8 +38,8 @@ class JSResourceLocatorTest extends \Test\TestCase { protected $urlGenerator; /** @var SystemConfig|\PHPUnit_Framework_MockObject_MockObject */ protected $config; - /** @var ICache|\PHPUnit_Framework_MockObject_MockObject */ - protected $depsCache; + /** @var ICacheFactory|\PHPUnit_Framework_MockObject_MockObject */ + protected $cacheFactory; /** @var ILogger|\PHPUnit_Framework_MockObject_MockObject */ protected $logger; @@ -49,7 +49,7 @@ class JSResourceLocatorTest extends \Test\TestCase { $this->appData = $this->createMock(IAppData::class); $this->urlGenerator = $this->createMock(IURLGenerator::class); $this->config = $this->createMock(SystemConfig::class); - $this->depsCache = $this->createMock(ICache::class); + $this->cacheFactory = $this->createMock(ICacheFactory::class); $this->logger = $this->createMock(ILogger::class); } @@ -57,7 +57,7 @@ class JSResourceLocatorTest extends \Test\TestCase { $jsCombiner = new JSCombiner( $this->appData, $this->urlGenerator, - $this->depsCache, + $this->cacheFactory, $this->config, $this->logger ); |