Fix locking unit tests due to filemtime addition
This commit is contained in:
parent
b900782513
commit
f355d4e51a
|
@ -1976,9 +1976,13 @@ class View extends \Test\TestCase {
|
||||||
$view = new \OC\Files\View('/' . $this->user . '/files/');
|
$view = new \OC\Files\View('/' . $this->user . '/files/');
|
||||||
|
|
||||||
$storage = $this->getMockBuilder('\OC\Files\Storage\Temporary')
|
$storage = $this->getMockBuilder('\OC\Files\Storage\Temporary')
|
||||||
->setMethods([$operation])
|
->setMethods([$operation, 'filemtime'])
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
|
$storage->expects($this->any())
|
||||||
|
->method('filemtime')
|
||||||
|
->will($this->returnValue(123456789));
|
||||||
|
|
||||||
$sourcePath = 'original.txt';
|
$sourcePath = 'original.txt';
|
||||||
$targetPath = 'target.txt';
|
$targetPath = 'target.txt';
|
||||||
|
|
||||||
|
@ -2117,9 +2121,13 @@ class View extends \Test\TestCase {
|
||||||
->setMethods([$storageOperation])
|
->setMethods([$storageOperation])
|
||||||
->getMock();
|
->getMock();
|
||||||
$storage2 = $this->getMockBuilder('\OC\Files\Storage\Temporary')
|
$storage2 = $this->getMockBuilder('\OC\Files\Storage\Temporary')
|
||||||
->setMethods([$storageOperation])
|
->setMethods([$storageOperation, 'filemtime'])
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
|
$storage2->expects($this->any())
|
||||||
|
->method('filemtime')
|
||||||
|
->will($this->returnValue(123456789));
|
||||||
|
|
||||||
$sourcePath = 'original.txt';
|
$sourcePath = 'original.txt';
|
||||||
$targetPath = 'substorage/target.txt';
|
$targetPath = 'substorage/target.txt';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue