Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Routing] use constants in tests #16277

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

Closed

Conversation

Tobion
Copy link
Contributor

@Tobion Tobion commented Oct 18, 2015

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets -
License MIT
Doc PR -

Use constants in tests instead of hardcoded values in preparation for #16276

Conflicts:
	src/Symfony/Component/Routing/Tests/Generator/Dumper/PhpGeneratorDumperTest.php
@fabpot
Copy link
Member

fabpot commented Oct 18, 2015

Thank you @Tobion.

@fabpot fabpot closed this in 2f205d4 Oct 18, 2015
@fabpot
Copy link
Member

fabpot commented Oct 18, 2015

merged and propagated to 2.8.

@Tobion Tobion deleted the urlgenerator-use-constants-in-tests branch October 18, 2015 20:26
fabpot added a commit that referenced this pull request Oct 19, 2015
…hp templates consistent with twig (Tobion)

This PR was merged into the 2.8 branch.

Discussion
----------

Unify URL generator reference type + make linking in php templates consistent with twig

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | yes
| Tests pass?   | yes
| Fixed tickets | #14672
| License       | MIT
| Doc PR        | TODO

Please see ticket.
Please merge #16277 first. I will then rebase this to make tests pass.

Commits
-------

388fa43 [Templating] deprecate low-level RouterHelper::generate method as it's cumbersome to use constants in templates
97d6828 [Templating] introduce path and url methods in php templates to be in line with twig templates
912fc4d [Routing] deprecate the old url generator reference type values
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants