summaryrefslogtreecommitdiffstats
path: root/apps/encryption
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2017-02-27 16:19:48 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2017-03-24 14:55:33 +0100
commit305718370a0a202dbb1848683876ff236ec9f441 (patch)
tree8793aa3f1b2b771bd832f7ed279c0967354e0fb6 /apps/encryption
parent43c081bdc9cf9cabfa29d39babb6fa6454331ebb (diff)
downloadnextcloud-server-305718370a0a202dbb1848683876ff236ec9f441.tar.gz
nextcloud-server-305718370a0a202dbb1848683876ff236ec9f441.zip
Add tests for null user
Diffstat (limited to 'apps/encryption')
-rw-r--r--apps/encryption/tests/KeyManagerTest.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/encryption/tests/KeyManagerTest.php b/apps/encryption/tests/KeyManagerTest.php
index 40def135816..c326f21e506 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, '']
];
}