make modify_url work better

This commit is contained in:
Shish
2020-03-27 23:35:07 +00:00
parent 70acc6015b
commit b60e8ac5b4
4 changed files with 45 additions and 24 deletions

View File

@@ -112,6 +112,7 @@ abstract class ShimmiePHPUnitTestCase extends TestCase
if (!$args) {
$args = [];
}
$_SERVER['REQUEST_URI'] = make_link($page_name, http_build_query($args));
$_GET = $args;
$_POST = [];
$page = new Page();
@@ -129,6 +130,7 @@ abstract class ShimmiePHPUnitTestCase extends TestCase
if (!$args) {
$args = [];
}
$_SERVER['REQUEST_URI'] = make_link($page_name);
foreach ($args as $k=>$v) {
if(is_array($v)) {
$args[$k] = $v;