1
0

MemoryTest.php 544 B

1234567891011121314151617181920212223242526
  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() {
  11. parent::setUp();
  12. $this->instance = new \OC\Session\Memory($this->getUniqueID());
  13. }
  14. /**
  15. * @expectedException \OCP\Session\Exceptions\SessionNotAvailableException
  16. */
  17. public function testThrowsExceptionOnGetId() {
  18. $this->instance->getId();
  19. }
  20. }