diff options
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); } |