mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
adjust test
This commit is contained in:
parent
89959a856c
commit
8f1a609512
1 changed files with 7 additions and 1 deletions
|
|
@ -318,9 +318,15 @@ class Storage extends \Test\TestCase {
|
|||
*/
|
||||
$storage = $this->getMockBuilder('\OC\Files\Storage\Temporary')
|
||||
->setConstructorArgs([[]])
|
||||
->setMethods(['rename', 'unlink'])
|
||||
->setMethods(['rename', 'unlink', 'moveFromStorage'])
|
||||
->getMock();
|
||||
|
||||
$storage->expects($this->any())
|
||||
->method('rename')
|
||||
->will($this->returnValue(false));
|
||||
$storage->expects($this->any())
|
||||
->method('moveFromStorage')
|
||||
->will($this->returnValue(false));
|
||||
$storage->expects($this->any())
|
||||
->method('unlink')
|
||||
->will($this->returnValue(false));
|
||||
|
|
|
|||
Loading…
Reference in a new issue