Zend\Test - set the request's requestUri to the dispatched url #4089

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

austinsmorris commented Mar 21, 2013

When dispatching a url in a controller test (e.g. $this->dispatch('/foo');), the request's uri object's path is set to the dispatched url, but the request's requestUri is not. It is always set to '/'. This causes problems for any module or controller code that looks at the request's requestUri. This pull request fixes this problem.

@weierophinney weierophinney added a commit that referenced this pull request Mar 28, 2013

@weierophinney weierophinney Merge pull request #4089 from austinsmorris/dispatchRequestUri
Zend\Test - set the request's requestUri to the dispatched url
50048d4

@weierophinney weierophinney added a commit that referenced this pull request Mar 28, 2013

@weierophinney weierophinney Merge branch 'hotfix/4089' into develop
Forward port #4089
9ee4ca9

@weierophinney weierophinney added a commit to zendframework/zend-test that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge pull request zendframework/zendframework#4089 from austinsmorri…
…s/dispatchRequestUri

Zend\Test - set the request's requestUri to the dispatched url
f0ce162

@weierophinney weierophinney added a commit to zendframework/zend-test that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge branch 'hotfix/4089' 157b3a0

@weierophinney weierophinney added a commit to zendframework/zend-test that referenced this pull request May 15, 2015

@weierophinney weierophinney Merge branch 'hotfix/4089' into develop d900ca2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment