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:
authorJasper Knockaert <jasper@knockaert.nl>2021-01-05 23:45:50 +0300
committerMichaIng (Rebase PR Action) <micha@dietpi.com>2021-09-03 16:40:41 +0300
commit5341807b14d1242d6852377f70ef80b1f9325ff4 (patch)
tree35a9ddd44bc65d50f3e2b4a4d04ee760cecf5852 /tests
parentbbf191bdef3bef110928cf24bfa3d0931002a1a4 (diff)
Update EncryptionTest.php
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/Files/Storage/Wrapper/EncryptionTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
index 7042fd09f5e..a4ee5e45bd5 100644
--- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
+++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php
@@ -608,7 +608,7 @@ class EncryptionTest extends Storage {
->setMethods(['getCache','readFirstBlock', 'parseRawHeader'])
->getMock();
- $instance->expects($this->any())->method('getCache')->willReturn($cache);
+ $instance->expects($this->once())->method('getCache')->willReturn($cache);
$instance->expects($this->once())->method(('parseRawHeader'))
->willReturn([Util::HEADER_ENCRYPTION_MODULE_KEY => 'OC_DEFAULT_MODULE']);
@@ -687,8 +687,8 @@ class EncryptionTest extends Storage {
->setMethods(['readFirstBlock', 'parseRawHeader', 'getCache'])
->getMock();
- $instance->expects($this->once())->method(('parseRawHeader'))->willReturn($header);
- $instance->expects($this->any())->method('getCache')->willReturn($cache);
+ $instance->expects($this->any())->method(('parseRawHeader'))->willReturn($header);
+ $instance->expects($this->once())->method('getCache')->willReturn($cache);
$result = $this->invokePrivate($instance, 'getHeader', ['test.txt']);
$this->assertSameSize($expected, $result);