diff options
author | MichaIng <micha@dietpi.com> | 2021-10-30 01:19:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-30 01:19:28 +0300 |
commit | 5bd6a4fd297b9464d2a17bdd64a8cbca7536b6ed (patch) | |
tree | fe059f4464c1c2c7c1c89e24842333698d6e4dac /tests | |
parent | 331bf8ec22156dfef295d2b4740e1fa39f5f0585 (diff) | |
parent | 72776e5493219495d870735a9a9d79d02fb9049c (diff) |
Merge pull request #29415 from nextcloud/backport/27440/stable22
[stable22] Handle files with `is_file` instead of `file_exists`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/EncryptionTest.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php index a4ee5e45bd5..71af8fb7ece 100644 --- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php +++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php @@ -624,7 +624,7 @@ class EncryptionTest extends Storage { $util->expects($this->once())->method('stripPartialFileExtension') ->with($path)->willReturn($strippedPath); $sourceStorage->expects($this->once()) - ->method('file_exists') + ->method('is_file') ->with($strippedPath) ->willReturn($strippedPathExists); @@ -652,7 +652,7 @@ class EncryptionTest extends Storage { ->disableOriginalConstructor()->getMock(); $sourceStorage->expects($this->once()) - ->method('file_exists') + ->method('is_file') ->willReturn($exists); $util = $this->getMockBuilder('\OC\Encryption\Util') |