Fix tests
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
d2d73f1ce8
commit
094d41937a
|
@ -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…
Reference in New Issue