Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-08-31 15:06:51 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2016-08-31 15:06:51 +0300
commitac2be923a621b5ce194d0c347a1d405646599a19 (patch)
treed487373c64a79a5d9311bbd34ca0ef4867882e1a /apps/federatedfilesharing/tests/AddressHandlerTest.php
parente4311a2ebdf3eeda8b2f1022c19290dc68db8ae5 (diff)
Fix deprecated usages of getMock in federatedfilesharing
Diffstat (limited to 'apps/federatedfilesharing/tests/AddressHandlerTest.php')
-rw-r--r--apps/federatedfilesharing/tests/AddressHandlerTest.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/tests/AddressHandlerTest.php b/apps/federatedfilesharing/tests/AddressHandlerTest.php
index 9ae37bb251d..c2e69fb2bd7 100644
--- a/apps/federatedfilesharing/tests/AddressHandlerTest.php
+++ b/apps/federatedfilesharing/tests/AddressHandlerTest.php
@@ -43,8 +43,10 @@ class AddressHandlerTest extends \Test\TestCase {
public function setUp() {
parent::setUp();
- $this->urlGenerator = $this->getMock('OCP\IURLGenerator');
- $this->il10n = $this->getMock('OCP\IL10N');
+ $this->urlGenerator = $this->getMockBuilder('OCP\IURLGenerator')
+ ->getMock();
+ $this->il10n = $this->getMockBuilder('OCP\IL10N')
+ ->getMock();
$this->addressHandler = new AddressHandler($this->urlGenerator, $this->il10n);
}