minor #12903 [TwigBundle] avoid risky tests (xabbuh)
This PR was merged into the 2.6 branch.
Discussion
----------
[TwigBundle] avoid risky tests
| Q | A
| ------------- | ---
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | #12646
| License | MIT
| Doc PR |
Commits
-------
e7b0b89
avoid risky tests
This commit is contained in:
commit
c2fc7c959d
@ -52,6 +52,7 @@ class ExceptionControllerTest extends TestCase
|
||||
);
|
||||
|
||||
$request = Request::create('whatever', 'GET');
|
||||
$request->headers->set('X-Php-Ob-Level', 1);
|
||||
$request->attributes->set('showException', false);
|
||||
$exception = FlattenException::create(new \Exception(), 404);
|
||||
$controller = new ExceptionController($twig, /* "showException" defaults to --> */ true);
|
||||
@ -71,6 +72,7 @@ class ExceptionControllerTest extends TestCase
|
||||
);
|
||||
|
||||
$request = Request::create('whatever');
|
||||
$request->headers->set('X-Php-Ob-Level', 1);
|
||||
$request->setRequestFormat('txt');
|
||||
$exception = FlattenException::create(new \Exception());
|
||||
$controller = new ExceptionController($twig, false);
|
||||
|
Reference in New Issue
Block a user