Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
  • Loading branch information
rullzer committed Dec 18, 2017
1 parent d2d73f1 commit 094d419
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/theming/tests/ThemingDefaultsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function setUp() {
$this->defaults = new \OC_Defaults();
$this->cacheFactory
->expects($this->any())
->method('create')
->method('createDistributed')
->with('theming')
->willReturn($this->cache);
$this->template = new ThemingDefaults(
Expand Down
2 changes: 1 addition & 1 deletion tests/Core/Command/Maintenance/UpdateTheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function testThemeUpdate() {
->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]);
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/App/AppManagerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ protected function setUp() {
$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);
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/IntegrityCheck/CheckerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function setUp() {

$this->cacheFactory
->expects($this->any())
->method('create')
->method('createDistributed')
->with('oc.integritycheck.checker')
->will($this->returnValue(new NullCache()));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function setUp() {

$this->cacheFactory
->expects($this->once())
->method('create')
->method('createDistributed')
->with('OC\Security\RateLimiting\Backend\MemoryCache')
->willReturn($this->cache);

Expand Down

0 comments on commit 094d419

Please sign in to comment.