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

Skip to content

[WebProfilerBundle] add missing tests #24666

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
wants to merge 2 commits into from

Conversation

mhujer
Copy link
Contributor

@mhujer mhujer commented Oct 23, 2017

Q A
Branch? 2.7
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets none
License MIT

This PR fixes one test in WebDebugToolbarListenerTest and adds one that was missing (more detailed description is available in the commits description)

X-Debug-Token was not set, so the test was actually testing what
happens when the token is not set. The corresponding line in
WebDebugToolbarListener could have been commented out and the test did
not break.
The condition for Content-Type was not tested, so it was possible to
comment it out without breaking tests.
@mhujer
Copy link
Contributor Author

mhujer commented Oct 23, 2017

Travis fails only on PHP 5.4 in Symfony\Component\Process\Tests\ProcessTest which seems unrelated

@nicolas-grekas nicolas-grekas added this to the 2.7 milestone Oct 23, 2017
@fabpot
Copy link
Member

fabpot commented Nov 5, 2017

Thank you @mhujer.

fabpot added a commit that referenced this pull request Nov 5, 2017
This PR was squashed before being merged into the 2.7 branch (closes #24666).

Discussion
----------

[WebProfilerBundle] add missing tests

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT

This PR fixes one test in WebDebugToolbarListenerTest and adds one that was missing (more detailed description is available in the commits description)

Commits
-------

363d3a8 [WebProfilerBundle] add missing tests
@fabpot fabpot closed this Nov 5, 2017
@mhujer mhujer deleted the mh-webprofilerbundle-tests branch November 5, 2017 16:20
ostrolucky pushed a commit to ostrolucky/symfony that referenced this pull request Mar 25, 2018
This PR was squashed before being merged into the 2.7 branch (closes symfony#24666).

Discussion
----------

[WebProfilerBundle] add missing tests

| Q             | A
| ------------- | ---
| Branch?       | 2.7
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | none
| License       | MIT

This PR fixes one test in WebDebugToolbarListenerTest and adds one that was missing (more detailed description is available in the commits description)

Commits
-------

363d3a8 [WebProfilerBundle] add missing tests
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