diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-08-19 22:29:01 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-19 22:29:01 +0300 |
commit | d7aa1c00edd535dbd806aedd957ead2ca26537e5 (patch) | |
tree | adc3799c8e6daff49598aae7d0710a8d76dd2d71 /tests | |
parent | 93225bcf22ec1f46ede58902f8642181f4d891b4 (diff) | |
parent | 193b3ead51fea5706d3ef14206684286b1b75c0e (diff) |
Merge pull request #21983 from nextcloud/backport/21628/stable19
[stable19] fix moving files from external storage to object store trashbin
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/ViewTest.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/tests/lib/Files/ViewTest.php b/tests/lib/Files/ViewTest.php index 9dbe2a4e10e..e69e49f8c81 100644 --- a/tests/lib/Files/ViewTest.php +++ b/tests/lib/Files/ViewTest.php @@ -13,7 +13,6 @@ use OC\Files\Filesystem; use OC\Files\Mount\MountPoint; use OC\Files\Storage\Common; use OC\Files\Storage\Temporary; -use OC\Files\Stream\Quota; use OC\Files\View; use OCP\Constants; use OCP\Files\Config\IMountProvider; @@ -1167,13 +1166,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'); |