diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-12 21:33:38 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-09-13 09:09:53 +0200 |
commit | dcf8091d69de9d2c748859cd921051fecc8cc88a (patch) | |
tree | 8ed0ce6fec7b6af6fc7edfbfb2edb2dbbadff3f6 /tests | |
parent | 31532ecf131f7e598fe1d8bd80b9ea3b48fd0577 (diff) | |
download | nextcloud-server-dcf8091d69de9d2c748859cd921051fecc8cc88a.tar.gz nextcloud-server-dcf8091d69de9d2c748859cd921051fecc8cc88a.zip |
Fix getMock HelperStorageTest
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/HelperStorageTest.php | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/lib/HelperStorageTest.php b/tests/lib/HelperStorageTest.php index e841dbfce18..e27d5eca21d 100644 --- a/tests/lib/HelperStorageTest.php +++ b/tests/lib/HelperStorageTest.php @@ -7,6 +7,7 @@ */ namespace Test; +use OC\Files\Storage\Temporary; /** * Test the storage functions of OC_Helper @@ -62,12 +63,10 @@ class HelperStorageTest extends \Test\TestCase { * @return \OC\Files\Storage\Storage */ private function getStorageMock($freeSpace = 12) { - $this->storageMock = $this->getMock( - '\OC\Files\Storage\Temporary', - array('free_space'), - array('') - ); - + $this->storageMock = $this->getMockBuilder(Temporary::class) + ->setMethods(['free_space']) + ->setConstructorArgs(['']) + ->getMock(); $this->storageMock->expects($this->once()) ->method('free_space') |