nextcloud/tests/lib/Session/MemoryTest.php
Ferdinand Thiessen e5b1799079
chore: add missing Override attribute to test files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:28 +02:00

27 lines
588 B
PHP

<?php
/**
* 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 {
#[\Override]
protected function setUp(): void {
parent::setUp();
$this->instance = new Memory();
}
public function testThrowsExceptionOnGetId(): void {
$this->expectException(SessionNotAvailableException::class);
$this->instance->getId();
}
}