mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
Update EncryptionTest.php
This commit is contained in:
parent
bbf191bdef
commit
5341807b14
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue