summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-31 20:33:18 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-31 20:33:18 +0200
commit011364317a43cf32cab938a6928b03b1d60e02d9 (patch)
tree84e111ff5c2b6d2c29409ece0b550620569e47e7 /apps
parent2685129184472a308a3ba7730207816151b0ffd7 (diff)
downloadnextcloud-server-011364317a43cf32cab938a6928b03b1d60e02d9.tar.gz
nextcloud-server-011364317a43cf32cab938a6928b03b1d60e02d9.zip
Fix ThemingDefaults getMock deprecation
Diffstat (limited to 'apps')
-rw-r--r--apps/theming/tests/ThemingDefaultsTest.php10
1 files 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