summaryrefslogtreecommitdiffstats
path: root/tests/lib/Session/MemoryTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Session/MemoryTest.php')
-rw-r--r--tests/lib/Session/MemoryTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lib/Session/MemoryTest.php b/tests/lib/Session/MemoryTest.php
index 7b60e0197f4..79053ccb1c8 100644
--- a/tests/lib/Session/MemoryTest.php
+++ b/tests/lib/Session/MemoryTest.php
@@ -16,10 +16,10 @@ class MemoryTest extends Session {
$this->instance = new \OC\Session\Memory($this->getUniqueID());
}
- /**
- * @expectedException \OCP\Session\Exceptions\SessionNotAvailableException
- */
+
public function testThrowsExceptionOnGetId() {
+ $this->expectException(\OCP\Session\Exceptions\SessionNotAvailableException::class);
+
$this->instance->getId();
}