symfony-docs
symfony-docs copied to clipboard
The Symfony documentation
https://symfony.com/doc/current/testing.html lacks information of say ``` class UnderstandSymfonyTest extends KernelTestCase { ... self::getContainer()->set(IDevJobService::class, $mockDevJobService); ... ``` and that all services need to be set to public in test to use...
| Q | A | ------------ | --- | Feature PR | symfony/symfony#46000 | PR author(s) | @lyrixx | Merged in | 6.2
Everything else in bundles has moved away from /Resources, so I think the path mentioned here isn't right.
I'm just *guessing* this - please double-check!
As already pointed out by @linaori in https://github.com/symfony/symfony-docs/pull/10423#discussion_r222777195, it's quite useless to create an empty controller, just for the route. So the recommended way should be to add it in...
Documentation page related to the PR https://github.com/symfony/symfony/pull/46428
To test if the user is not logged.
Default behavior when creating a EnumType form element is that the choice labels displayed to the user are the enum names. This PR adds an example of how to use...