Fix getMock HelperStorageTest
This commit is contained in:
parent
31532ecf13
commit
dcf8091d69
|
@ -7,6 +7,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace Test;
|
namespace Test;
|
||||||
|
use OC\Files\Storage\Temporary;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test the storage functions of OC_Helper
|
* Test the storage functions of OC_Helper
|
||||||
|
@ -62,12 +63,10 @@ class HelperStorageTest extends \Test\TestCase {
|
||||||
* @return \OC\Files\Storage\Storage
|
* @return \OC\Files\Storage\Storage
|
||||||
*/
|
*/
|
||||||
private function getStorageMock($freeSpace = 12) {
|
private function getStorageMock($freeSpace = 12) {
|
||||||
$this->storageMock = $this->getMock(
|
$this->storageMock = $this->getMockBuilder(Temporary::class)
|
||||||
'\OC\Files\Storage\Temporary',
|
->setMethods(['free_space'])
|
||||||
array('free_space'),
|
->setConstructorArgs([''])
|
||||||
array('')
|
->getMock();
|
||||||
);
|
|
||||||
|
|
||||||
|
|
||||||
$this->storageMock->expects($this->once())
|
$this->storageMock->expects($this->once())
|
||||||
->method('free_space')
|
->method('free_space')
|
||||||
|
|
Loading…
Reference in New Issue