summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-04-25 10:23:06 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-04-25 10:36:24 +0200
commit0d53e86421faef0300d509b385934754b4dab88c (patch)
treef5319c156015c720115941cc4b3e79d3cfa7b9f7 /tests
parent74de72e75e68cb3aaffa2ab90fbd685e755b4262 (diff)
downloadnextcloud-server-0d53e86421faef0300d509b385934754b4dab88c.tar.gz
nextcloud-server-0d53e86421faef0300d509b385934754b4dab88c.zip
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..750fcf2ec6f 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 \Exception
+ */
+ public function testThrowsExceptionOnGetId() {
+ $this->instance->getId();
+ }
+
}