From ef4b59d3417ff9069425d7ae7a8e6e4f8165f7fb Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Fri, 22 Nov 2019 09:52:58 +0100 Subject: More fixes Signed-off-by: Roeland Jago Douma --- tests/lib/Session/CryptoWrappingTest.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/lib/Session/CryptoWrappingTest.php') 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); }); -- cgit v1.2.3