]> source.dussan.org Git - nextcloud-server.git/commitdiff
Still some session leftovers.
authorThomas Tanghus <thomas@tanghus.net>
Tue, 17 Sep 2013 17:46:08 +0000 (19:46 +0200)
committerThomas Tanghus <thomas@tanghus.net>
Tue, 17 Sep 2013 17:46:08 +0000 (19:46 +0200)
lib/appframework/controller/controller.php
tests/lib/appframework/controller/ControllerTest.php

index a7498ba0e1e7c579b706449d217e0f88c4c16ac2..0ea0a38cc090e36906de3a9782edc603a8567481 100644 (file)
@@ -106,16 +106,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
index 246371d249ccfdd9674e199a130943b888a98795..4441bddfca9f4685385744aafa29671592222843 100644 (file)
@@ -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'));
-       }
-
-
 }