fix: Fix return types in tests.

This commit is contained in:
Pol Dellaiera 2021-12-21 15:26:22 +01:00
parent 70ca203e23
commit b55c19cd9e
No known key found for this signature in database
GPG Key ID: D476DFE9C67467CA
16 changed files with 16 additions and 16 deletions

View File

@ -23,7 +23,7 @@ final class DocGenEncoderTest extends TestCase
{ {
private DocGenEncoder $encoder; private DocGenEncoder $encoder;
protected function setUp() protected function setUp(): void
{ {
parent::setUp(); parent::setUp();

View File

@ -25,7 +25,7 @@ final class DocGenObjectNormalizerTest extends KernelTestCase
{ {
private NormalizerInterface $normalizer; private NormalizerInterface $normalizer;
protected function setUp() protected function setUp(): void
{ {
parent::setUp(); parent::setUp();
self::bootKernel(); self::bootKernel();

View File

@ -23,7 +23,7 @@ use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
*/ */
final class BaseContextDataTest extends KernelTestCase final class BaseContextDataTest extends KernelTestCase
{ {
protected function setUp() protected function setUp(): void
{ {
parent::setUp(); parent::setUp();
self::bootKernel(); self::bootKernel();

View File

@ -24,7 +24,7 @@ final class CenterResolverDispatcherTest extends KernelTestCase
{ {
private CenterResolverDispatcherInterface $dispatcher; private CenterResolverDispatcherInterface $dispatcher;
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
$this->dispatcher = self::$container->get(CenterResolverDispatcher::class); $this->dispatcher = self::$container->get(CenterResolverDispatcher::class);

View File

@ -25,7 +25,7 @@ final class DoctrineExistingEntityNormalizerTest extends KernelTestCase
{ {
protected DoctrineExistingEntityNormalizer $normalizer; protected DoctrineExistingEntityNormalizer $normalizer;
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
$em = self::$container->get(EntityManagerInterface::class); $em = self::$container->get(EntityManagerInterface::class);

View File

@ -25,7 +25,7 @@ use Symfony\Component\Templating\EngineInterface;
*/ */
final class AddressRenderTest extends KernelTestCase final class AddressRenderTest extends KernelTestCase
{ {
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
} }

View File

@ -32,7 +32,7 @@ final class HouseholdControllerTest extends WebTestCase
private ?KernelBrowser $client = null; private ?KernelBrowser $client = null;
protected function setUp() protected function setUp(): void
{ {
$this->client = $this->getClientAuthenticated(); $this->client = $this->getClientAuthenticated();
} }

View File

@ -28,7 +28,7 @@ final class MembersEditorTest extends TestCase
{ {
private MembersEditorFactory $factory; private MembersEditorFactory $factory;
protected function setUp() protected function setUp(): void
{ {
$validator = $this->createMock(ValidatorInterface::class); $validator = $this->createMock(ValidatorInterface::class);

View File

@ -30,7 +30,7 @@ final class AccompanyingPeriodWorkDocGenNormalizerTest extends KernelTestCase
{ {
private NormalizerInterface $normalizer; private NormalizerInterface $normalizer;
protected function setUp() protected function setUp(): void
{ {
parent::bootKernel(); parent::bootKernel();
$this->normalizer = self::$container->get(NormalizerInterface::class); $this->normalizer = self::$container->get(NormalizerInterface::class);

View File

@ -27,7 +27,7 @@ final class HouseholdNormalizerTest extends KernelTestCase
{ {
private ?NormalizerInterface $normalizer; private ?NormalizerInterface $normalizer;
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
$this->normalizer = self::$container->get(NormalizerInterface::class); $this->normalizer = self::$container->get(NormalizerInterface::class);

View File

@ -61,7 +61,7 @@ final class PersonDocGenNormalizerTest extends KernelTestCase
private NormalizerInterface $normalizer; private NormalizerInterface $normalizer;
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();

View File

@ -24,7 +24,7 @@ final class PersonJsonNormalizerTest extends KernelTestCase
{ {
private NormalizerInterface $normalizer; private NormalizerInterface $normalizer;
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
$this->normalizer = self::$container->get(NormalizerInterface::class); $this->normalizer = self::$container->get(NormalizerInterface::class);

View File

@ -27,7 +27,7 @@ final class PersonValidationTest extends KernelTestCase
{ {
private ValidatorInterface $validator; private ValidatorInterface $validator;
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
$this->validator = self::$container->get(ValidatorInterface::class); $this->validator = self::$container->get(ValidatorInterface::class);

View File

@ -22,7 +22,7 @@ use Symfony\Component\Workflow\Registry;
*/ */
final class AccompanyingPeriodLifecycle extends KernelTestCase final class AccompanyingPeriodLifecycle extends KernelTestCase
{ {
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
} }

View File

@ -29,7 +29,7 @@ final class SingleTaskControllerTest extends WebTestCase
*/ */
protected $faker; protected $faker;
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();
$this->faker = Faker\Factory::create('fr'); $this->faker = Faker\Factory::create('fr');

View File

@ -23,7 +23,7 @@ final class ThirdPartyJsonDenormalizerTest extends KernelTestCase
{ {
private DenormalizerInterface $normalizer; private DenormalizerInterface $normalizer;
protected function setUp() protected function setUp(): void
{ {
self::bootKernel(); self::bootKernel();