mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
closes #6142, shows Auth works as expected with camelCased actions
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8065 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
811eb90d87
commit
b8d21c6c2c
1 changed files with 15 additions and 0 deletions
|
@ -282,6 +282,15 @@ class AuthTestController extends Controller {
|
||||||
function add() {
|
function add() {
|
||||||
echo "add";
|
echo "add";
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* add method
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
function camelCase() {
|
||||||
|
echo "camelCase";
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* redirect method
|
* redirect method
|
||||||
*
|
*
|
||||||
|
@ -557,7 +566,13 @@ class AuthTest extends CakeTestCase {
|
||||||
|
|
||||||
$this->Controller->Session->del('Auth');
|
$this->Controller->Session->del('Auth');
|
||||||
$result = $this->Controller->Auth->startup($this->Controller);
|
$result = $this->Controller->Auth->startup($this->Controller);
|
||||||
|
$this->assertFalse($result);
|
||||||
$this->assertTrue($this->Controller->Session->check('Message.auth'));
|
$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
|
* testAuthorizeController method
|
||||||
|
|
Loading…
Reference in a new issue