Browse Source

Fix tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
tags/v13.0.0beta4
Roeland Jago Douma 6 years ago
parent
commit
094d41937a
No account linked to committer's email address

+ 1
- 1
apps/theming/tests/ThemingDefaultsTest.php View File

@@ -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(

+ 1
- 1
tests/Core/Command/Maintenance/UpdateTheme.php View File

@@ -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]);

+ 1
- 1
tests/lib/App/AppManagerTest.php View File

@@ -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);

+ 1
- 1
tests/lib/IntegrityCheck/CheckerTest.php View File

@@ -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()));


+ 1
- 1
tests/lib/Security/RateLimiting/Backend/MemoryCacheTest.php View File

@@ -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