Fix phpunit Trait warning

This commit is contained in:
Roeland Jago Douma 2016-07-08 09:11:28 +02:00
parent 48f9e4ed03
commit c91aebc437
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ trait MountProviderTrait {
protected function setUpMountProviderTrait() {
$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())
->method('getMountsForUser')
->will($this->returnCallback(function (IUser $user) {