Skip to content

Commit

Permalink
tests: updated for @dev nette/http
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 30, 2014
1 parent bd5c78d commit c5432d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/Forms/Forms.getHttpData.get.2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions tests/Forms/Forms.getHttpData.get.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c5432d7

Please sign in to comment.