diff options
Diffstat (limited to 'tests/lib/Session/MemoryTest.php')
-rw-r--r-- | tests/lib/Session/MemoryTest.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/lib/Session/MemoryTest.php b/tests/lib/Session/MemoryTest.php index ae4a1b64dc0..40977f1f3fb 100644 --- a/tests/lib/Session/MemoryTest.php +++ b/tests/lib/Session/MemoryTest.php @@ -8,15 +8,18 @@ namespace Test\Session; +use OC\Session\Memory; +use OCP\Session\Exceptions\SessionNotAvailableException; + class MemoryTest extends Session { protected function setUp(): void { parent::setUp(); - $this->instance = new \OC\Session\Memory($this->getUniqueID()); + $this->instance = new Memory(); } - - public function testThrowsExceptionOnGetId() { - $this->expectException(\OCP\Session\Exceptions\SessionNotAvailableException::class); + + public function testThrowsExceptionOnGetId(): void { + $this->expectException(SessionNotAvailableException::class); $this->instance->getId(); } |