diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-15 09:52:46 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-07-15 09:52:46 +0200 |
commit | 2fcb24166f8ac77a49947f14bbeaf0f1bec5dfa4 (patch) | |
tree | b43ce551bf0a4ea1bd78de7084d3814f35beb12f /apps/dav/tests/unit/Connector/Sabre/QuotaPluginTest.php | |
parent | 813b58ab947222f983fe25d56781f1f43c840538 (diff) | |
download | nextcloud-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.php | 5 |
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)) |