diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2013-09-17 19:46:08 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2013-09-17 19:46:08 +0200 |
commit | 8b4f4a79e22dc08cf7c13a91c926c229676d6522 (patch) | |
tree | 042fe563b6966321c735943a23bdb469dc3ee5ad | |
parent | 5bddb5377a40c987223804e8c3846437b6cf120a (diff) | |
download | nextcloud-server-8b4f4a79e22dc08cf7c13a91c926c229676d6522.tar.gz nextcloud-server-8b4f4a79e22dc08cf7c13a91c926c229676d6522.zip |
Still some session leftovers.
-rw-r--r-- | lib/appframework/controller/controller.php | 10 | ||||
-rw-r--r-- | tests/lib/appframework/controller/ControllerTest.php | 5 |
2 files changed, 0 insertions, 15 deletions
diff --git a/lib/appframework/controller/controller.php b/lib/appframework/controller/controller.php index a7498ba0e1e..0ea0a38cc09 100644 --- a/lib/appframework/controller/controller.php +++ b/lib/appframework/controller/controller.php @@ -107,16 +107,6 @@ abstract class Controller { /** - * Shortcut for getting session variables - * @param string $key the key that will be taken from the $_SESSION array - * @return array the value in the $_SESSION element - */ - public function session($key) { - return $this->request->getSession($key); - } - - - /** * Shortcut for getting cookie variables * @param string $key the key that will be taken from the $_COOKIE array * @return array the value in the $_COOKIE element diff --git a/tests/lib/appframework/controller/ControllerTest.php b/tests/lib/appframework/controller/ControllerTest.php index 246371d249c..4441bddfca9 100644 --- a/tests/lib/appframework/controller/ControllerTest.php +++ b/tests/lib/appframework/controller/ControllerTest.php @@ -152,9 +152,4 @@ class ControllerTest extends \PHPUnit_Framework_TestCase { $this->assertEquals('daheim', $this->controller->env('PATH')); } - public function testGetSessionVariable(){ - $this->assertEquals('kein', $this->controller->session('sezession')); - } - - } |