summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/appframework/controller/controller.php10
-rw-r--r--tests/lib/appframework/controller/ControllerTest.php5
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'));
- }
-
-
}