Fix test for TranslatableActivityTypeTest.php

This commit is contained in:
Julien Fastré 2023-09-01 15:32:18 +02:00
parent 37c1dfb0ba
commit 1361e2bbf9
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -27,18 +27,11 @@ final class TranslatableActivityTypeTest extends KernelTestCase
*/ */
protected $builder; protected $builder;
/**
* @var \Symfony\Component\DependencyInjection\ContainerInterface
*/
protected $container;
protected function setUp(): void protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
$this->container = self::$kernel->getContainer(); $this->builder = self::$container
$this->builder = $this->container
->get('form.factory') ->get('form.factory')
->createBuilder(FormType::class, null, [ ->createBuilder(FormType::class, null, [
'csrf_protection' => false, 'csrf_protection' => false,