aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRoeland Douma <rullzer@users.noreply.github.com>2016-05-02 16:49:38 +0200
committerRoeland Douma <rullzer@users.noreply.github.com>2016-05-02 16:49:38 +0200
commitb84825f0301fb073bfcc6e05132675d104afcfe3 (patch)
treeae63c55f897761e5fd068bc328fcb9d19ffd4bcc /tests
parentfd844f3eb3bdfe1186c42df382b3de2e02c98cd4 (diff)
parente93bf80b29cde236c5d78023b49435283e4b2562 (diff)
downloadnextcloud-server-b84825f0301fb073bfcc6e05132675d104afcfe3.tar.gz
nextcloud-server-b84825f0301fb073bfcc6e05132675d104afcfe3.zip
Merge pull request #24229 from owncloud/session-id-wrapper
add ISession::getId() wrapper for session_id
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/session/memory.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/lib/session/memory.php b/tests/lib/session/memory.php
index 1ca4956c6ea..dbf2737fb3f 100644
--- a/tests/lib/session/memory.php
+++ b/tests/lib/session/memory.php
@@ -10,8 +10,17 @@
namespace Test\Session;
class Memory extends Session {
+
protected function setUp() {
parent::setUp();
$this->instance = new \OC\Session\Memory($this->getUniqueID());
}
+
+ /**
+ * @expectedException OCP\Session\Exceptions\SessionNotAvailableException
+ */
+ public function testThrowsExceptionOnGetId() {
+ $this->instance->getId();
+ }
+
}