fixing unit test execution - test dummy module was behaving wrong
This commit is contained in:
parent
870c53ee37
commit
fce42a3161
2 changed files with 2 additions and 2 deletions
|
@ -78,7 +78,7 @@ class Encryption extends \Test\Files\Storage\Storage {
|
||||||
$encryptionModule->expects($this->any())->method('update')->willReturn(true);
|
$encryptionModule->expects($this->any())->method('update')->willReturn(true);
|
||||||
$encryptionModule->expects($this->any())->method('shouldEncrypt')->willReturn(true);
|
$encryptionModule->expects($this->any())->method('shouldEncrypt')->willReturn(true);
|
||||||
$encryptionModule->expects($this->any())->method('calculateUnencryptedSize')->willReturn(42);
|
$encryptionModule->expects($this->any())->method('calculateUnencryptedSize')->willReturn(42);
|
||||||
$encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(6126);
|
$encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(8192);
|
||||||
return $encryptionModule;
|
return $encryptionModule;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -98,7 +98,7 @@ class Encryption extends \Test\TestCase {
|
||||||
$encryptionModule->expects($this->any())->method('update')->willReturn(true);
|
$encryptionModule->expects($this->any())->method('update')->willReturn(true);
|
||||||
$encryptionModule->expects($this->any())->method('shouldEncrypt')->willReturn(true);
|
$encryptionModule->expects($this->any())->method('shouldEncrypt')->willReturn(true);
|
||||||
$encryptionModule->expects($this->any())->method('calculateUnencryptedSize')->willReturn(42);
|
$encryptionModule->expects($this->any())->method('calculateUnencryptedSize')->willReturn(42);
|
||||||
$encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(6126);
|
$encryptionModule->expects($this->any())->method('getUnencryptedBlockSize')->willReturn(8192);
|
||||||
return $encryptionModule;
|
return $encryptionModule;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue