Closed
Description
This is a continuation of a problem described in #27, #210 and #212.
class ApartmentSubwaysTest extends \Symfony\Bundle\FrameworkBundle\Test\WebTestCase
{
public function testFoo(): void
{
static::createClient()->getContainer()->get(UserRepository::class);
}
}
\Symfony\Bundle\FrameworkBundle\KernelBrowser::getContainer()
:
/**
* Returns the container.
*
* @return ContainerInterface
*/
public function getContainer()
{
$container = $this->kernel->getContainer();
return $container->has('test.service_container') ? $container->get('test.service_container') : $container;
}
So there should be one more stub added for KernelBrowser::getContainer()
Metadata
Metadata
Assignees
Labels
No labels