diff --git a/tests/Forms/Forms.getHttpData.get.2.phpt b/tests/Forms/Forms.getHttpData.get.2.phpt index dfa157e82..90c1170f4 100644 --- a/tests/Forms/Forms.getHttpData.get.2.phpt +++ b/tests/Forms/Forms.getHttpData.get.2.phpt @@ -19,6 +19,8 @@ before(function() { test(function() { $_GET = array('item'); + $_SERVER['REQUEST_URI'] = '/?' . http_build_query($_GET); + $form = new Form; $form->setMethod($form::GET); $form->addSubmit('send', 'Send'); diff --git a/tests/Forms/Forms.getHttpData.get.phpt b/tests/Forms/Forms.getHttpData.get.phpt index e0df4cd09..7da96f715 100644 --- a/tests/Forms/Forms.getHttpData.get.phpt +++ b/tests/Forms/Forms.getHttpData.get.phpt @@ -42,6 +42,7 @@ test(function() { test(function() { $name = 'name'; $_GET = array(Form::TRACKER_ID => $name); + $_SERVER['REQUEST_URI'] = '/?' . http_build_query($_GET); $form = new Form($name); $form->setMethod($form::GET);