Fix tests

Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
Roeland Jago Douma 2017-12-18 21:06:52 +01:00
parent d2d73f1ce8
commit 094d41937a
No known key found for this signature in database
GPG Key ID: F941078878347C0C
5 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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