From f000df0263a36e1e0f9893906ad0b748e3df8698 Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Mon, 27 Feb 2017 16:19:48 +0100 Subject: [PATCH] Add tests for null user --- apps/encryption/tests/KeyManagerTest.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/encryption/tests/KeyManagerTest.php b/apps/encryption/tests/KeyManagerTest.php index fec311afa35..f3c03529652 100644 --- a/apps/encryption/tests/KeyManagerTest.php +++ b/apps/encryption/tests/KeyManagerTest.php @@ -418,7 +418,11 @@ class KeyManagerTest extends TestCase { ['', false, 'privateKey', true], ['', false, false, ''], ['', true, 'privateKey', true], - ['', true, false, ''] + ['', true, false, ''], + [null, false, 'privateKey', true], + [null, false, false, ''], + [null, true, 'privateKey', true], + [null, true, false, ''] ]; }