mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 19:16:16 +00:00
Removing duplicate method.
This commit is contained in:
parent
e0eb48d250
commit
322d8e667c
1 changed files with 0 additions and 29 deletions
|
@ -616,34 +616,5 @@ class RequestHandlerComponentTest extends CakeTestCase {
|
||||||
App::build();
|
App::build();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* test that the beforeRedirect callback properly converts
|
|
||||||
* array urls into their correct string ones, and adds base => false so
|
|
||||||
* the correct urls are generated.
|
|
||||||
*
|
|
||||||
* @link http://cakephp.lighthouseapp.com/projects/42648-cakephp-1x/tickets/276
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
function testBeforeRedirectCallbackWithArrayUrl() {
|
|
||||||
$_SERVER['HTTP_X_REQUESTED_WITH'] = 'XMLHttpRequest';
|
|
||||||
App::build(array(
|
|
||||||
'views' => array(TEST_CAKE_CORE_INCLUDE_PATH . 'tests' . DS . 'test_app' . DS . 'views'. DS)
|
|
||||||
), true);
|
|
||||||
Router::setRequestInfo(array(
|
|
||||||
array('plugin' => null, 'controller' => 'accounts', 'action' => 'index', 'pass' => array(), 'named' => array(), 'form' => array(), 'url' => array('url' => 'accounts/'), 'bare' => 0),
|
|
||||||
array('base' => '/officespace', 'here' => '/officespace/accounts/', 'webroot' => '/officespace/')
|
|
||||||
));
|
|
||||||
|
|
||||||
$RequestHandler =& new NoStopRequestHandler();
|
|
||||||
|
|
||||||
ob_start();
|
|
||||||
$RequestHandler->beforeRedirect(
|
|
||||||
$this->Controller,
|
|
||||||
array('controller' => 'request_handler_test', 'action' => 'param_method', 'first', 'second')
|
|
||||||
);
|
|
||||||
$result = ob_get_clean();
|
|
||||||
$this->assertEqual($result, 'one: first two: second');
|
|
||||||
App::build();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Add table
Reference in a new issue