Skip to content

Commit

Permalink
minor #875 [ci][make-controller] set framework.test in test env (jrus…
Browse files Browse the repository at this point in the history
…hlow)

This PR was squashed before being merged into the 1.0-dev branch.

Discussion
----------

[ci][make-controller] set framework.test in test env

fixes
```
1) Symfony\Bundle\MakerBundle\Tests\Maker\MakeControllerTest::testExecute with data set "controller_basic" (Symfony\Bundle\MakerBundle\Test\MakerTestDetails Object (...))
Error while running the PHPUnit tests *in* the project:

PHPUnit 8.5.15 by Sebastian Bergmann and contributors.

Testing Project Test Suite
E                                                                   1 / 1 (100%)

Time: 162 ms, Memory: 20.00 MB

There was 1 error:

1) App\Tests\GeneratedControllerTest::testController
LogicException: You cannot create the client used in functional tests if the "framework.test" config is not set to true.

/var/htdocs/tests/tmp/cache/maker_app_f06e46ebe75d42ea9e9b63872d47e20b5.x-dev/vendor/symfony/framework-bundle/Test/WebTestCase.php:52
/var/htdocs/tests/tmp/cache/maker_app_f06e46ebe75d42ea9e9b63872d47e20b5.x-dev/tests/GeneratedControllerTest.php:11
```

Commits
-------

2e03945 [ci][make-controller] set framework.test in test env
  • Loading branch information
weaverryan committed Jun 25, 2021
2 parents dabfffe + 2e03945 commit 9daea17
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/fixtures/MakeController/config/packages/framework.yaml

This file was deleted.

0 comments on commit 9daea17

Please sign in to comment.