Fix phpunit Trait warning
This commit is contained in:
parent
48f9e4ed03
commit
c91aebc437
|
@ -41,7 +41,7 @@ trait MountProviderTrait {
|
||||||
|
|
||||||
protected function setUpMountProviderTrait() {
|
protected function setUpMountProviderTrait() {
|
||||||
$this->storageFactory = new StorageFactory();
|
$this->storageFactory = new StorageFactory();
|
||||||
$this->mountProvider = $this->getMock('\OCP\Files\Config\IMountProvider');
|
$this->mountProvider = $this->getMockBuilder('\OCP\Files\Config\IMountProvider')->getMock();
|
||||||
$this->mountProvider->expects($this->any())
|
$this->mountProvider->expects($this->any())
|
||||||
->method('getMountsForUser')
|
->method('getMountsForUser')
|
||||||
->will($this->returnCallback(function (IUser $user) {
|
->will($this->returnCallback(function (IUser $user) {
|
||||||
|
|
Loading…
Reference in New Issue