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
diff options
context:
space:
mode:
authorMichaIng <micha@dietpi.com>2021-10-30 01:19:35 +0300
committerGitHub <noreply@github.com>2021-10-30 01:19:35 +0300
commite250aef6b44059eb9f7a2ab87fc05339323e4d14 (patch)
tree65437217330fc425738a9ca24a7941fc95e27df0 /tests
parent81b3e6570327001e75cf1ee3e0a17886ab4ed549 (diff)
parent8610099c5f888bf07b2904031b6ee7968a34e77b (diff)
Merge pull request #29416 from nextcloud/backport/27440/stable21
[stable21] Handle files with `is_file` instead of `file_exists`
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Storage/Wrapper/EncryptionTest.php4
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')