8000 It's needed to change the returned string in testControllerResponse by demyanovs · Pull Request #12798 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

It's needed to change the returned string in testControllerResponse #12798

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
Jan 2, 2020
Merged

It's needed to change the returned string in testControllerResponse #12798

merged 1 commit into from
Jan 2, 2020

Conversation

demyanovs
Copy link
Contributor

Following the documentation, we check the Calendar application and get the string "Yep, this is a leap year!" instead of "Hello Fabien".

@demyanovs demyanovs changed the title It's needed to change the returned string It's needed to change the returned string in testControllerResponse Dec 10, 2019
@javiereguiluz
Copy link
Member

@demyanovs thanks for this contribution.

I haven't run the code shown on this page ... but the whole test code looks correct to me because of this:

image

Do you have the exact same code as in this test and the result is different? Thanks.

@demyanovs
Copy link
Contributor Author

@javiereguiluz thanks for the response.
I relied on the code posted on this page and here we have another route
'_route' => 'is_leap_year / {year}'.
If you follow the documentation, then the condition on this page does not match.
er_01

@OskarStark
Copy link
Contributor

That looks indeed like a bug, thank you both for sharing the very helpful screenshots 👍🏻🙂

@javiereguiluz
8000 Copy link
Member

My mistake was that I was looking at 3.4 branch ... and this apparently changed in 4.3. So, we're merging it in 4.3 (and 4.4., 5.0 and master). Thanks @demyanovs.

Following the documentation, we check the Calendar application and get the string "Yep, this is a leap year!" instead of "Hello Fabien".
@javiereguiluz javiereguiluz changed the base branch from master to 4.3 January 2, 2020 14:53
javiereguiluz added a commit that referenced this pull request Jan 2, 2020
…lerResponse (demyanovs)

This PR was submitted for the master branch but it was merged into the 4.3 branch instead (closes #12798).

Discussion
----------

It's needed to change the returned string in testControllerResponse

Following the documentation, we check the Calendar application and get the string "Yep, this is a leap year!" instead of "Hello Fabien".

<!--

If your pull request fixes a BUG, use the oldest maintained branch that contains
the bug (see https://symfony.com/roadmap for the list of maintained branches).

If your pull request documents a NEW FEATURE, use the same Symfony branch where
the feature was introduced (and `master` for features of unreleased versions).

-->

Commits
-------

8f96598 It's needed to change the returned string
@javiereguiluz javiereguiluz merged commit 8f96598 into symfony:4.3 Jan 2, 2020
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.

4 participants
0