aboutsummaryrefslogtreecommitdiffstats
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.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/lib/Session/MemoryTest.php b/tests/lib/Session/MemoryTest.php
index fab7292ae00..40977f1f3fb 100644
--- a/tests/lib/Session/MemoryTest.php
+++ b/tests/lib/Session/MemoryTest.php
@@ -1,23 +1,25 @@
<?php
/**
- * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
- * This file is licensed under the Affero General Public License version 3 or
- * later.
- * See the COPYING-README file.
+ * SPDX-FileCopyrightText: 2019-2024 Nextcloud GmbH and Nextcloud contributors
+ * SPDX-FileCopyrightText: 2016 ownCloud, Inc.
+ * SPDX-License-Identifier: AGPL-3.0-or-later
*/
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();
}