diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-31 14:06:51 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-08-31 14:06:51 +0200 |
commit | ac2be923a621b5ce194d0c347a1d405646599a19 (patch) | |
tree | d487373c64a79a5d9311bbd34ca0ef4867882e1a /apps/federatedfilesharing/tests/AddressHandlerTest.php | |
parent | e4311a2ebdf3eeda8b2f1022c19290dc68db8ae5 (diff) | |
download | nextcloud-server-ac2be923a621b5ce194d0c347a1d405646599a19.tar.gz nextcloud-server-ac2be923a621b5ce194d0c347a1d405646599a19.zip |
Fix deprecated usages of getMock in federatedfilesharing
Diffstat (limited to 'apps/federatedfilesharing/tests/AddressHandlerTest.php')
-rw-r--r-- | apps/federatedfilesharing/tests/AddressHandlerTest.php | 6 |
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); } |