From 011364317a43cf32cab938a6928b03b1d60e02d9 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Wed, 31 Aug 2016 20:33:18 +0200 Subject: [PATCH] Fix ThemingDefaults getMock deprecation --- apps/theming/tests/ThemingDefaultsTest.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/theming/tests/ThemingDefaultsTest.php b/apps/theming/tests/ThemingDefaultsTest.php index ffa6810ffde..204c96d86d5 100644 --- a/apps/theming/tests/ThemingDefaultsTest.php +++ b/apps/theming/tests/ThemingDefaultsTest.php @@ -46,13 +46,13 @@ class ThemingDefaultsTest extends TestCase { public function setUp() { parent::setUp(); - $this->config = $this->getMock('\\OCP\\IConfig'); - $this->l10n = $this->getMock('\\OCP\\IL10N'); - $this->urlGenerator = $this->getMock('\\OCP\\IURLGenerator'); - $this->rootFolder = $this->getMockBuilder('OCP\Files\IRootFolder') + $this->config = $this->getMockBuilder(IConfig::class)->getMock(); + $this->l10n = $this->getMockBuilder(IL10N::class)->getMock(); + $this->urlGenerator = $this->getMockBuilder(IURLGenerator::class)->getMock(); + $this->rootFolder = $this->getMockBuilder(IRootFolder::class) ->disableOriginalConstructor() ->getMock(); - $this->defaults = $this->getMockBuilder('\\OC_Defaults') + $this->defaults = $this->getMockBuilder(\OC_Defaults::class) ->disableOriginalConstructor() ->getMock(); $this->defaults