Skip to content

Commit

Permalink
Making SessionHelper tests pass again
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 20, 2010
1 parent 2cb2609 commit 3fff5d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Cake/tests/cases/libs/view/helpers/session.test.php
Expand Up @@ -41,6 +41,7 @@ function setUp() {
$controller = null;
$this->View = new View($controller);
$this->Session = new SessionHelper($this->View);
CakeSession::start();

$_SESSION = array(
'test' => 'info',
Expand Down Expand Up @@ -129,7 +130,7 @@ function testFlash() {
$this->assertEqual($result, $expected);

App::build(array(
'views' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'views'. DS)
'View' => array(LIBS . 'tests' . DS . 'test_app' . DS . 'views'. DS)
));
$result = $this->Session->flash('notification', true);
$result = str_replace("\r\n", "\n", $result);
Expand Down

0 comments on commit 3fff5d1

Please sign in to comment.