diff options
author | Jasper Knockaert <jasper@knockaert.nl> | 2021-01-05 21:45:50 +0100 |
---|---|---|
committer | MichaIng (Rebase PR Action) <micha@dietpi.com> | 2021-09-03 13:40:41 +0000 |
commit | 5341807b14d1242d6852377f70ef80b1f9325ff4 (patch) | |
tree | 35a9ddd44bc65d50f3e2b4a4d04ee760cecf5852 /tests | |
parent | bbf191bdef3bef110928cf24bfa3d0931002a1a4 (diff) | |
download | nextcloud-server-5341807b14d1242d6852377f70ef80b1f9325ff4.tar.gz nextcloud-server-5341807b14d1242d6852377f70ef80b1f9325ff4.zip |
Update EncryptionTest.php
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lib/Files/Storage/Wrapper/EncryptionTest.php | 6 |
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); |