MemoryTest.php 531 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright (c) 2013 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace Test\Session;
  9. class MemoryTest extends Session {
  10. protected function setUp(): void {
  11. parent::setUp();
  12. $this->instance = new \OC\Session\Memory();
  13. }
  14. public function testThrowsExceptionOnGetId() {
  15. $this->expectException(\OCP\Session\Exceptions\SessionNotAvailableException::class);
  16. $this->instance->getId();
  17. }
  18. }