aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Connector/Sabre/Exception
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-07-15 09:52:46 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2016-07-15 09:52:46 +0200
commit2fcb24166f8ac77a49947f14bbeaf0f1bec5dfa4 (patch)
treeb43ce551bf0a4ea1bd78de7084d3814f35beb12f /apps/dav/tests/unit/Connector/Sabre/Exception
parent813b58ab947222f983fe25d56781f1f43c840538 (diff)
downloadnextcloud-server-2fcb24166f8ac77a49947f14bbeaf0f1bec5dfa4.tar.gz
nextcloud-server-2fcb24166f8ac77a49947f14bbeaf0f1bec5dfa4.zip
Fix PHPUnit 5.4 warnings in DAV app
* getMock is deprecated
Diffstat (limited to 'apps/dav/tests/unit/Connector/Sabre/Exception')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/Exception/ForbiddenTest.php4
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/Exception/InvalidPathTest.php4
2 files changed, 6 insertions, 2 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/Exception/ForbiddenTest.php b/apps/dav/tests/unit/Connector/Sabre/Exception/ForbiddenTest.php
index 44e9e17b695..61f78d13547 100644
--- a/apps/dav/tests/unit/Connector/Sabre/Exception/ForbiddenTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/Exception/ForbiddenTest.php
@@ -47,7 +47,9 @@ class ForbiddenTest extends \Test\TestCase {
EOD;
$ex = new Forbidden($message, $retry);
- $server = $this->getMock('Sabre\DAV\Server');
+ $server = $this->getMockBuilder('Sabre\DAV\Server')
+ ->disableOriginalConstructor()
+ ->getMock();
$ex->serialize($server, $error);
// assert
diff --git a/apps/dav/tests/unit/Connector/Sabre/Exception/InvalidPathTest.php b/apps/dav/tests/unit/Connector/Sabre/Exception/InvalidPathTest.php
index 0e1224f596a..25960cc3cb8 100644
--- a/apps/dav/tests/unit/Connector/Sabre/Exception/InvalidPathTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/Exception/InvalidPathTest.php
@@ -48,7 +48,9 @@ class InvalidPathTest extends \Test\TestCase {
EOD;
$ex = new InvalidPath($message, $retry);
- $server = $this->getMock('Sabre\DAV\Server');
+ $server = $this->getMockBuilder('Sabre\DAV\Server')
+ ->disableOriginalConstructor()
+ ->getMock();
$ex->serialize($server, $error);
// assert