summaryrefslogtreecommitdiffstats
path: root/apps/encryption/tests/lib/SessionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/encryption/tests/lib/SessionTest.php')
-rw-r--r--apps/encryption/tests/lib/SessionTest.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/encryption/tests/lib/SessionTest.php b/apps/encryption/tests/lib/SessionTest.php
index dbf3ecc45a1..f7e026808f0 100644
--- a/apps/encryption/tests/lib/SessionTest.php
+++ b/apps/encryption/tests/lib/SessionTest.php
@@ -35,10 +35,10 @@ class SessionTest extends TestCase {
private $sessionMock;
/**
- * @throws \OCA\Encryption\Exceptions\PrivateKeyMissingException
+ * @expectedException \OCA\Encryption\Exceptions\PrivateKeyMissingException
+ * @expectedExceptionMessage Private Key missing for user: please try to log-out and log-in again
*/
public function testThatGetPrivateKeyThrowsExceptionWhenNotSet() {
- $this->setExpectedException('OCA\Encryption\Exceptions\PrivateKeyMissingException', 'no private key stored in session');
$this->instance->getPrivateKey();
}