[ZF2] Fixed handling of query parameters #939

Merged
merged 1 commit into from Mar 25, 2014

Conversation

Projects
None yet
2 participants
@piccagliani
Contributor

piccagliani commented Mar 25, 2014

I found a bug that ZF2 module faild to pass query parameters to controller.


Case 1:

  • test
$I->amOnPage('/?foo=bar');

Case 2:

  • html
<form method="POST" action="/?foo=bar">
    <input type="submit" value="Submit" />
</form>
  • test
$I->click('Submit');

In both cases, I got Array() by the following code. (expected Array([foo] => bar))

class IndexController extends AbstractActionController
{
    public function indexAction()
    {
        print_r($this->params()->fromQuery());exit;
    }
}
@DavertMik

This comment has been minimized.

Show comment
Hide comment
@DavertMik

DavertMik Mar 25, 2014

Member

Great. Merging...

Member

DavertMik commented Mar 25, 2014

Great. Merging...

DavertMik added a commit that referenced this pull request Mar 25, 2014

Merge pull request #939 from piccagliani/zf2_query_params
[ZF2] Fixed handling of query parameters

@DavertMik DavertMik merged commit 5065e6b into Codeception:1.8 Mar 25, 2014

1 check was pending

default The Travis CI build is in progress
Details
@piccagliani

This comment has been minimized.

Show comment
Hide comment
@piccagliani

piccagliani Mar 25, 2014

Contributor

Thank you!

Contributor

piccagliani commented Mar 25, 2014

Thank you!

@piccagliani piccagliani deleted the piccagliani:zf2_query_params branch Mar 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment