Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-06-30 17:09:50 +0300
committerRobin Appelman <robin@icewind.nl>2020-07-23 16:24:48 +0300
commitfcad692b4a5dd8e0c128af64647b64f658b124c5 (patch)
tree5e76cad58489d46f046f61f967bd7bff512e5140 /tests/lib
parent59498493220a666573516679e7752d09543ac1b5 (diff)
rollback cache rename if trashbin move fails
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'tests/lib')
-rw-r--r--tests/lib/Files/ViewTest.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php
index 036fc038a60..ae6c4b22dec 100644
--- a/tests/lib/Files/ViewTest.php
+++ b/tests/lib/Files/ViewTest.php
@@ -1167,13 +1167,8 @@ class ViewTest extends \Test\TestCase {
->setMethods(['fopen'])
->getMock();
- $storage2->expects($this->any())
- ->method('fopen')
- ->willReturnCallback(function ($path, $mode) use ($storage2) {
- /** @var \PHPUnit_Framework_MockObject_MockObject | \OC\Files\Storage\Temporary $storage2 */
- $source = fopen($storage2->getSourcePath($path), $mode);
- return Quota::wrap($source, 9);
- });
+ $storage2->method('writeStream')
+ ->willReturn(0);
$storage1->mkdir('sub');
$storage1->file_put_contents('foo.txt', '0123456789ABCDEFGH');