Skip to content

document how to test actions #3839

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 12, 2014

Conversation

greg0ire
Copy link
Contributor

@greg0ire greg0ire commented May 6, 2014

It is not so easy to find, and maybe there is a way to set this on a more global level, but this solution does the job.

------------------------

You need to set the Host HTTP header on your request objects if you want to get
past url matching in your functional tests.::
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the final stop or use .. code-block:: php instead of the :: shortcut

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I don't know rst that well... is it better now ? I'm not sure
about the grey bar that appears left to the code block.

Le 06/05/2014 16:46, Wouter J a écrit :

In components/routing/hostname_pattern.rst:

@@ -282,3 +282,17 @@ You can also set the host option on imported routes:

The host hello.example.com will be set on each route loaded from the new
routing resource.
+
+Testing your controllers
+------------------------
+
+You need to set the Host HTTP header on your request objects if you want to get
+past url matching in your functional tests.::

remove the final stop or use |.. code-block:: php| instead of the |::|
shortcut


Reply to this email directly or view it on GitHub
https://github.com/symfony/symfony-docs/pull/3839/files#r12327741.

@weaverryan
Copy link
Member

Really great idea to add this note. Thanks Grégoire!

@weaverryan weaverryan merged commit e7f44ea into symfony:2.3 May 12, 2014
weaverryan added a commit that referenced this pull request May 12, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

document how to test actions

It is not so easy to find, and maybe there is a way to set this on a more global level, but this solution does the job.

Commits
-------

e7f44ea document how to test actions
@greg0ire greg0ire deleted the show_how_to_test_routes_with_host branch May 12, 2014 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants