Skip to content

[Routing] use constants in tests#16277

Closed
Tobion wants to merge 2 commits intosymfony:2.3from
Tobion:urlgenerator-use-constants-in-tests
Closed

[Routing] use constants in tests#16277
Tobion wants to merge 2 commits intosymfony:2.3from
Tobion:urlgenerator-use-constants-in-tests

Conversation

@Tobion
Copy link
Copy Markdown
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
Copy Markdown
Member

fabpot commented Oct 18, 2015

Thank you @Tobion.

@fabpot fabpot closed this in 2f205d4 Oct 18, 2015
@fabpot
Copy link
Copy Markdown
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