aboutsummaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/SessionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/tests/SessionTest.php')
-rw-r--r--apps/encryption/tests/SessionTest.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/encryption/tests/SessionTest.php b/apps/encryption/tests/SessionTest.php
index 10c699898fc..c9486658bcb 100644
--- a/apps/encryption/tests/SessionTest.php
+++ b/apps/encryption/tests/SessionTest.php
@@ -7,6 +7,7 @@
*/
namespace OCA\Encryption\Tests;
+use OCA\Encryption\Exceptions\PrivateKeyMissingException;
use OCA\Encryption\Session;
use OCP\ISession;
use Test\TestCase;
@@ -22,7 +23,7 @@ class SessionTest extends TestCase {
public function testThatGetPrivateKeyThrowsExceptionWhenNotSet(): void {
- $this->expectException(\OCA\Encryption\Exceptions\PrivateKeyMissingException::class);
+ $this->expectException(PrivateKeyMissingException::class);
$this->expectExceptionMessage('Private Key missing for user: please try to log-out and log-in again');
$this->instance->getPrivateKey();
@@ -84,7 +85,7 @@ class SessionTest extends TestCase {
* @expectExceptionMessage 'Please activate decrypt all mode first'
*/
public function testGetDecryptAllKeyException(): void {
- $this->expectException(\OCA\Encryption\Exceptions\PrivateKeyMissingException::class);
+ $this->expectException(PrivateKeyMissingException::class);
$this->instance->getDecryptAllKey();
}
@@ -93,7 +94,7 @@ class SessionTest extends TestCase {
* @expectExceptionMessage 'No key found while in decrypt all mode'
*/
public function testGetDecryptAllKeyException2(): void {
- $this->expectException(\OCA\Encryption\Exceptions\PrivateKeyMissingException::class);
+ $this->expectException(PrivateKeyMissingException::class);
$this->instance->prepareDecryptAll('user', null);
$this->instance->getDecryptAllKey();