diff options
author | Jasper Knockaert <jasper@knockaert.nl> | 2021-01-05 21:45:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-05 21:45:50 +0100 |
commit | 261966ace5f539f0ab676a063506f6e63469dce5 (patch) | |
tree | e4414ddf625c6304cfcbd0f4c6996056f67641f0 /tests | |
parent | 664e74a82ec957c44ea5ec782e2718546c534f87 (diff) | |
download | nextcloud-server-261966ace5f539f0ab676a063506f6e63469dce5.tar.gz nextcloud-server-261966ace5f539f0ab676a063506f6e63469dce5.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 6bdacda8c76..d152a51ed85 100644 --- a/tests/lib/Files/Storage/Wrapper/EncryptionTest.php +++ b/tests/lib/Files/Storage/Wrapper/EncryptionTest.php @@ -597,7 +597,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']); @@ -671,8 +671,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); |