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;
protected function setUp()
protected function setUp(): void
{
parent::setUp();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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