summaryrefslogtreecommitdiffstats
path: root/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
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/QuotaPluginTest.php
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/QuotaPluginTest.php')
-rw-r--r--apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
index c6a1bc3dd4b..bf827fd3585 100644
--- a/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
+++ b/apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php
@@ -212,7 +212,10 @@ class QuotaPluginTest extends \Test\TestCase {
private function buildFileViewMock($quota, $checkedPath) {
// mock filesysten
- $view = $this->getMock('\OC\Files\View', array('free_space'), array(), '', false);
+ $view = $this->getMockBuilder('\OC\Files\View')
+ ->setMethods(['free_space'])
+ ->disableOriginalConstructor()
+ ->getMock();
$view->expects($this->any())
->method('free_space')
->with($this->identicalTo($checkedPath))