diff options
author | Julius Härtl <github@jus.li> | 2016-08-31 21:46:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-31 21:46:22 +0200 |
commit | 73ff24895e3ffc275437f1325a6275c9d389e2c6 (patch) | |
tree | 84e111ff5c2b6d2c29409ece0b550620569e47e7 | |
parent | 2685129184472a308a3ba7730207816151b0ffd7 (diff) | |
parent | 011364317a43cf32cab938a6928b03b1d60e02d9 (diff) | |
download | nextcloud-server-73ff24895e3ffc275437f1325a6275c9d389e2c6.tar.gz nextcloud-server-73ff24895e3ffc275437f1325a6275c9d389e2c6.zip |
Merge pull request #1216 from nextcloud/theming_phpunit_fixes
Fix ThemingDefaults getMock deprecation
-rw-r--r-- | apps/theming/tests/ThemingDefaultsTest.php | 10 |
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 |