Skip to content

Commit

Permalink
closes #6142, shows Auth works as expected with camelCased actions
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8065 3807eeeb-6ff5-0310-8944-8be069107fe0
  • Loading branch information
gwoo committed Feb 27, 2009
1 parent 811eb90 commit b8d21c6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions cake/tests/cases/libs/controller/components/auth.test.php
Expand Up @@ -282,6 +282,15 @@ function logout() {
function add() {
echo "add";
}
/**
* add method
*
* @access public
* @return void
*/
function camelCase() {
echo "camelCase";
}
/**
* redirect method
*
Expand Down Expand Up @@ -557,7 +566,13 @@ function testAuthorizeFalse() {

$this->Controller->Session->del('Auth');
$result = $this->Controller->Auth->startup($this->Controller);
$this->assertFalse($result);
$this->assertTrue($this->Controller->Session->check('Message.auth'));


$this->Controller->params = Router::parse('auth_test/camelCase');
$result = $this->Controller->Auth->startup($this->Controller);
$this->assertFalse($result);
}
/**
* testAuthorizeController method
Expand Down

0 comments on commit b8d21c6

Please sign in to comment.