From 81ef116bfb9e69f361ded5c6dd8a8ae472909fd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Tue, 12 Sep 2017 09:47:38 +0200 Subject: [PATCH] Fix tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/theming/tests/ThemingDefaultsTest.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php index b1d86bff43..abd85a612c 100644 --- a/apps/theming/tests/ThemingDefaultsTest.php +++ b/apps/theming/tests/ThemingDefaultsTest.php @@ -623,15 +623,10 @@ class ThemingDefaultsTest extends TestCase { /** @dataProvider dataReplaceImagePath */ public function testReplaceImagePath($app, $image, $result = 'themingRoute?v=0') { - $cache = $this->createMock(ICache::class); - $cache->expects($this->any()) + $this->cache->expects($this->any()) ->method('get') ->with('shouldReplaceIcons') ->willReturn(true); - $this->cacheFactory->expects($this->any()) - ->method('create') - ->with('theming') - ->willReturn($cache); $this->config ->expects($this->any()) ->method('getAppValue')