Still some session leftovers.
This commit is contained in:
parent
5bddb5377a
commit
8b4f4a79e2
|
@ -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
|
||||
|
|
|
@ -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'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue