Skip to content

Commit

Permalink
test for ticket #467
Browse files Browse the repository at this point in the history
  • Loading branch information
ceeram committed Mar 19, 2010
1 parent 4012925 commit 7337c12
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cake/tests/cases/libs/controller/components/auth.test.php
Expand Up @@ -625,7 +625,7 @@ function testLogin() {
}

/**
* test that being redirected to the login page, with no post data does
* test that being redirected to the login page, with no post data does
* not set the session value. Saving the session value in this circumstance
* can cause the user to be redirected to an already public page.
*
Expand Down Expand Up @@ -1429,6 +1429,8 @@ function testPluginModel() {
'id' => 1, 'username' => 'gwoo', 'created' => '2007-03-17 01:16:23', 'updated' => date('Y-m-d H:i:s')
));
$this->assertEqual($user, $expected);
$sessionKey = $this->Controller->Auth->sessionKey;
$this->assertEqual('Auth.TestPluginAuthUser', $sessionKey);

// Reverting changes
Cache::delete('object_map', '_cake_core_');
Expand Down

0 comments on commit 7337c12

Please sign in to comment.