mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix failing tests caused by previous commit
This commit is contained in:
parent
a9bbfd80c7
commit
74b9cdb36f
2 changed files with 4 additions and 2 deletions
|
@ -165,11 +165,12 @@ class ActionsAuthorizeTest extends CakeTestCase {
|
|||
*/
|
||||
public function testActionNoDoubleSlash() {
|
||||
$this->auth->settings['actionPath'] = '/controllers/';
|
||||
$request = array(
|
||||
$request = new CakeRequest('/posts/index', false);
|
||||
$request->addParams(array(
|
||||
'plugin' => null,
|
||||
'controller' => 'posts',
|
||||
'action' => 'index'
|
||||
);
|
||||
));
|
||||
$result = $this->auth->action($request);
|
||||
$this->assertEquals('controllers/Posts/index', $result);
|
||||
}
|
||||
|
|
|
@ -453,6 +453,7 @@ class AuthComponentTest extends CakeTestCase {
|
|||
$this->Controller->Auth->userModel = 'AuthUser';
|
||||
$this->Controller->Auth->authorize = false;
|
||||
$this->Controller->request->addParams(Router::parse('auth_test/add'));
|
||||
$this->Controller->Auth->initialize($this->Controller);
|
||||
$result = $this->Controller->Auth->startup($this->Controller);
|
||||
$this->assertTrue($result);
|
||||
|
||||
|
|
Loading…
Reference in a new issue