D
Size: a a a
MM
MM
MM
AD
$this->client->loginUser
в тесте?...
protected function setUp(): void
{
$this->client = static::createClient();
$this->client->disableReboot();
$kernel = self::bootKernel();
DatabasePrimer::prime($kernel);
$this->em = $kernel->getContainer()->get('doctrine')->getManager();
}
public function test_userinfo_success()
{
$userRepository = $this->em->getRepository(User::class);
$testUser = $userRepository->findOneBy(['email' => 'black.jack@mail.ru']);
// ТУТ РУГАЕТСЯ
$this->client->loginUser($testUser);
}
...
LogicException: Cannot retrieve the container from a non-booted kernel.G[
G[
АС
DT
G[
G[