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->defaults = new \OC_Defaults();
|
||||||
$this->cacheFactory
|
$this->cacheFactory
|
||||||
->expects($this->any())
|
->expects($this->any())
|
||||||
->method('create')
|
->method('createDistributed')
|
||||||
->with('theming')
|
->with('theming')
|
||||||
->willReturn($this->cache);
|
->willReturn($this->cache);
|
||||||
$this->template = new ThemingDefaults(
|
$this->template = new ThemingDefaults(
|
||||||
|
|
|
@ -74,7 +74,7 @@ class UpdateThemeTest extends TestCase {
|
||||||
->method('clear')
|
->method('clear')
|
||||||
->with('');
|
->with('');
|
||||||
$this->cacheFactory->expects($this->once())
|
$this->cacheFactory->expects($this->once())
|
||||||
->method('create')
|
->method('createDistributed')
|
||||||
->with('imagePath')
|
->with('imagePath')
|
||||||
->willReturn($cache);
|
->willReturn($cache);
|
||||||
self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
|
self::invokePrivate($this->command, 'execute', [$this->consoleInput, $this->consoleOutput]);
|
||||||
|
|
|
@ -100,7 +100,7 @@ class AppManagerTest extends TestCase {
|
||||||
$this->cache = $this->createMock(ICache::class);
|
$this->cache = $this->createMock(ICache::class);
|
||||||
$this->eventDispatcher = $this->createMock(EventDispatcherInterface::class);
|
$this->eventDispatcher = $this->createMock(EventDispatcherInterface::class);
|
||||||
$this->cacheFactory->expects($this->any())
|
$this->cacheFactory->expects($this->any())
|
||||||
->method('create')
|
->method('createDistributed')
|
||||||
->with('settings')
|
->with('settings')
|
||||||
->willReturn($this->cache);
|
->willReturn($this->cache);
|
||||||
$this->manager = new AppManager($this->userSession, $this->appConfig, $this->groupManager, $this->cacheFactory, $this->eventDispatcher);
|
$this->manager = new AppManager($this->userSession, $this->appConfig, $this->groupManager, $this->cacheFactory, $this->eventDispatcher);
|
||||||
|
|
|
@ -60,7 +60,7 @@ class CheckerTest extends TestCase {
|
||||||
|
|
||||||
$this->cacheFactory
|
$this->cacheFactory
|
||||||
->expects($this->any())
|
->expects($this->any())
|
||||||
->method('create')
|
->method('createDistributed')
|
||||||
->with('oc.integritycheck.checker')
|
->with('oc.integritycheck.checker')
|
||||||
->will($this->returnValue(new NullCache()));
|
->will($this->returnValue(new NullCache()));
|
||||||
|
|
||||||
|
|
|
@ -46,7 +46,7 @@ class MemoryCacheTest extends TestCase {
|
||||||
|
|
||||||
$this->cacheFactory
|
$this->cacheFactory
|
||||||
->expects($this->once())
|
->expects($this->once())
|
||||||
->method('create')
|
->method('createDistributed')
|
||||||
->with('OC\Security\RateLimiting\Backend\MemoryCache')
|
->with('OC\Security\RateLimiting\Backend\MemoryCache')
|
||||||
->willReturn($this->cache);
|
->willReturn($this->cache);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue