mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Merge pull request #518 from shama/patch-cake-request-test
Fix failing tests with CakeRequest when ran in webrunner
This commit is contained in:
commit
66fd891503
1 changed files with 2 additions and 0 deletions
|
@ -1139,6 +1139,7 @@ class CakeRequestTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testGetParamsWithDot() {
|
public function testGetParamsWithDot() {
|
||||||
|
$_GET = array();
|
||||||
$_GET['/posts/index/add_add'] = '';
|
$_GET['/posts/index/add_add'] = '';
|
||||||
$_SERVER['PHP_SELF'] = '/cake_dev/app/webroot/index.php';
|
$_SERVER['PHP_SELF'] = '/cake_dev/app/webroot/index.php';
|
||||||
$_SERVER['REQUEST_URI'] = '/cake_dev/posts/index/add.add';
|
$_SERVER['REQUEST_URI'] = '/cake_dev/posts/index/add.add';
|
||||||
|
@ -1153,6 +1154,7 @@ class CakeRequestTest extends CakeTestCase {
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testGetParamWithUrlencodedElement() {
|
public function testGetParamWithUrlencodedElement() {
|
||||||
|
$_GET = array();
|
||||||
$_GET['/posts/add/∂∂'] = '';
|
$_GET['/posts/add/∂∂'] = '';
|
||||||
$_SERVER['PHP_SELF'] = '/cake_dev/app/webroot/index.php';
|
$_SERVER['PHP_SELF'] = '/cake_dev/app/webroot/index.php';
|
||||||
$_SERVER['REQUEST_URI'] = '/cake_dev/posts/add/%E2%88%82%E2%88%82';
|
$_SERVER['REQUEST_URI'] = '/cake_dev/posts/add/%E2%88%82%E2%88%82';
|
||||||
|
|
Loading…
Add table
Reference in a new issue