Skip to content

Fix error page preview tests #12540

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 7 commits into from
Closed

Fix error page preview tests #12540

wants to merge 7 commits into from

Conversation

mpdude
Copy link
Contributor

@mpdude mpdude commented Nov 21, 2014

See #12147 (comment) and following comments there.

mpdude and others added 7 commits November 21, 2014 09:23
…ption_controller (mpdude)

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

Discussion
----------

[TwigBundle] Fix error page preview for custom twig.exception_controller

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #12147
| License       | MIT
| Doc PR        | n/a

The `testErrorPageAction()` always used the `showAction()` of TwigBundle's `ExceptionController`.
You can, however, configure an alternate controller by setting `twig.exception_controller`.

Thus, in order to get a proper preview, we need to forward to this configured controller (which
may be the default one).

This requires us to pass an additional parameter to `ExceptionController::showAction` to be able to
get the *error* page even if configured otherwise in the constructor.

(The other approach would have been to fiddle around with `ExceptionController`'s `debug` flag through a setter when going through the preview action, but that would have been even more messy.)

Commits
-------

2065e00 [TwigBundle] Fix error page preview for custom twig.exception_controller
This adds an <abbr> element having a descriptive title that
displays the form element's type class name.
…(kix)

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

Discussion
----------

[DX] [Form] [WebProfiler] Added abbrs with type classes

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

This adds an `<abbr/>` element having a descriptive title that displays the form element's type class name. Everyone wants to know what's the type behind a form child, yes?

Looks like this:
![screenshot 2014-10-21 00 22 09](https://cloud.githubusercontent.com/assets/345754/4706604/32cf2d7a-5886-11e4-9fae-b9bff7a419ac.png)

Commits
-------

0d20753 [DX] [Form] [WebProfiler] Added abbrs with type classes
@mpdude
Copy link
Contributor Author

mpdude commented Nov 21, 2014

Dang, picked the wrong branch. Disregard.

@mpdude mpdude closed this Nov 21, 2014
@mpdude mpdude deleted the fix-error-page-preview-tests branch May 3, 2015 09:52
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.

3 participants