Closed
Description
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 them e.g.
when@test:
services:
App\Service\Concerns\IDevJobService:
class: App\Tests\Classes\TestDevJobService
autowire: true
public: true
Metadata
Metadata
Assignees
Labels
No labels