aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Session/CryptoWrappingTest.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-11-22 09:52:58 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2019-11-27 13:34:42 +0100
commitef4b59d3417ff9069425d7ae7a8e6e4f8165f7fb (patch)
tree3bf7113c1730cce86c15155a96adc89e3835d3bf /tests/lib/Session/CryptoWrappingTest.php
parent799f58391ea1dca3a24abe2598e08692af2a2c0b (diff)
downloadnextcloud-server-ef4b59d3417ff9069425d7ae7a8e6e4f8165f7fb.tar.gz
nextcloud-server-ef4b59d3417ff9069425d7ae7a8e6e4f8165f7fb.zip
More fixes
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'tests/lib/Session/CryptoWrappingTest.php')
-rw-r--r--tests/lib/Session/CryptoWrappingTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lib/Session/CryptoWrappingTest.php b/tests/lib/Session/CryptoWrappingTest.php
index 493d16bfbfb..fac515c8f52 100644
--- a/tests/lib/Session/CryptoWrappingTest.php
+++ b/tests/lib/Session/CryptoWrappingTest.php
@@ -52,6 +52,9 @@ class CryptoWrappingTest extends TestCase {
$this->crypto->expects($this->any())
->method('decrypt')
->willReturnCallback(function ($input) {
+ if ($input === '') {
+ return '';
+ }
return substr($input, 1, -1);
});