Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/7531/head
Roeland Jago Douma 8 years ago
parent d2d73f1ce8
commit 094d41937a
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 2
      apps/theming/tests/ThemingDefaultsTest.php
  2. 2
      tests/Core/Command/Maintenance/UpdateTheme.php
  3. 2
      tests/lib/App/AppManagerTest.php
  4. 2
      tests/lib/IntegrityCheck/CheckerTest.php
  5. 2
      tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php

@ -78,7 +78,7 @@ class ThemingDefaultsTest extends TestCase {
$this->defaults = new \OC_Defaults();
$this->cacheFactory
->expects($this->any())
->method('create')
->method('createDistributed')
->with('theming')
->willReturn($this->cache);
$this->template = new ThemingDefaults(

@ -74,7 +74,7 @@ class UpdateThemeTest extends TestCase {
->method('clear')
->with('');
$this->cacheFactory->expects($this->once())
->method('create')
->method('createDistributed')
->with('imagePath')
->willReturn($cache);
self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);

@ -100,7 +100,7 @@ class AppManagerTest extends TestCase {
$this->cache = $this->createMock(ICache::class);
$this->eventDispatcher = $this->createMock(EventDispatcherInterface::class);
$this->cacheFactory->expects($this->any())
->method('create')
->method('createDistributed')
->with('settings')
->willReturn($this->cache);
$this->manager = new AppManager($this->userSession, $this->appConfig, $this->groupManager, $this->cacheFactory, $this->eventDispatcher);

@ -60,7 +60,7 @@ class CheckerTest extends TestCase {
$this->cacheFactory
->expects($this->any())
->method('create')
->method('createDistributed')
->with('oc.integritycheck.checker')
->will($this->returnValue(new NullCache()));

@ -46,7 +46,7 @@ class MemoryCacheTest extends TestCase {
$this->cacheFactory
->expects($this->once())
->method('create')
->method('createDistributed')
->with('OC\Security\RateLimiting\Backend\MemoryCache')
->willReturn($this->cache);

Loading…
Cancel
Save