From 70ca203e230532ebd21c1a4872077ce44e3cce8f Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Tue, 21 Dec 2021 15:19:36 +0100 Subject: [PATCH] fix: Fix return types in tests. --- .../Tests/Export/Aggregator/ActivityReasonAggregatorTest.php | 2 +- .../Tests/Export/Aggregator/ActivityTypeAggregatorTest.php | 2 +- .../Tests/Export/Aggregator/ActivityUserAggregatorTest.php | 2 +- .../Tests/Export/Export/CountActivityTest.php | 2 +- .../Tests/Export/Export/ListActivityTest.php | 2 +- .../Tests/Export/Export/StatActivityDurationSumTest.php | 2 +- .../Tests/Export/Filter/ActivityReasonFilterTest.php | 2 +- .../Filter/PersonHavingActivityBetweenDateFilterTest.php | 2 +- .../ChillActivityBundle/Tests/Form/ActivityTypeTest.php | 2 +- .../Tests/Form/Type/TranslatableActivityReasonTest.php | 2 +- .../Tests/Form/Type/TranslatableActivityTypeTest.php | 2 +- .../Tests/Security/Authorization/ActivityVoterTest.php | 2 +- .../src/Tests/Controller/AsideActivityControllerTest.php | 2 +- .../Tests/Controller/CalendarControllerTest.php | 2 +- .../Tests/CustomFields/CustomFieldsChoiceTest.php | 4 ++-- .../Tests/CustomFields/CustomFieldsNumberTest.php | 2 +- .../Tests/CustomFields/CustomFieldsTextTest.php | 2 +- .../Tests/Form/Extension/PostTextIntegerExtensionTest.php | 2 +- .../Tests/Form/Extension/PostTextNumberExtensionTest.php | 2 +- .../Tests/Service/CustomFieldsHelperTest.php | 2 +- .../Tests/Templating/Twig/CustomFieldRenderingTwigTest.php | 2 +- .../Templating/Twig/CustomFieldsGroupRenderingTwigTest.php | 2 +- .../Tests/Controller/ParticipationControllerTest.php | 2 +- src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php | 4 ++-- src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php | 2 +- .../Tests/Authorization/ParentRoleHelperTest.php | 2 +- .../Tests/Controller/AddressControllerTest.php | 2 +- .../ChillMainBundle/Tests/Controller/UserControllerTest.php | 2 +- src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php | 4 ++-- src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php | 2 +- src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php | 2 +- .../ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php | 2 +- .../ChillMainBundle/Tests/Search/AbstractSearchTest.php | 2 +- .../ChillMainBundle/Tests/Search/SearchProviderTest.php | 2 +- .../Tests/Security/Authorization/AuthorizationHelperTest.php | 2 +- .../Tests/Security/PasswordRecover/TokenManagerTest.php | 2 +- .../Tests/Security/Resolver/DefaultScopeResolverTest.php | 2 +- .../Tests/Security/Resolver/ScopeResolverDispatcherTest.php | 2 +- .../Tests/Serializer/Normalizer/DateNormalizerTest.php | 2 +- .../ChillMainBundle/Tests/Services/MenuComposerTest.php | 2 +- .../AccompanyingPeriod/AccompanyingPeriodConfidentialTest.php | 2 +- .../Tests/Controller/AccompanyingCourseApiControllerTest.php | 2 +- .../Tests/Controller/AccompanyingCourseControllerTest.php | 2 +- .../Tests/Controller/AccompanyingPeriodControllerTest.php | 4 ++-- .../Tests/Controller/PersonAddressControllerTest.php | 2 +- .../Tests/Controller/PersonControllerCreateTest.php | 2 +- .../Tests/Controller/PersonControllerUpdateTest.php | 4 ++-- .../Controller/PersonControllerUpdateWithHiddenFieldsTest.php | 4 ++-- .../Tests/Controller/PersonControllerViewTest.php | 4 ++-- .../Controller/PersonControllerViewWithHiddenFieldsTest.php | 4 ++-- .../Tests/Controller/PersonDuplicateControllerViewTest.php | 2 +- .../Tests/Controller/RelationshipApiControllerTest.php | 2 +- .../Tests/Controller/SocialIssueApiControllerTest.php | 2 +- .../Tests/Export/Aggregator/AgeAggregatorTest.php | 2 +- .../Tests/Export/Aggregator/GenderAggregatorTest.php | 2 +- .../Tests/Export/Aggregator/NationalityAggregatorTest.php | 2 +- .../ChillPersonBundle/Tests/Export/Export/CountPersonTest.php | 2 +- .../ChillPersonBundle/Tests/Export/Export/ListPersonTest.php | 2 +- .../Tests/Export/Filter/AccompanyingPeriodFilterTest.php | 2 +- .../Tests/Export/Filter/BirthdayFilterTest.php | 2 +- .../Tests/Export/Filter/GenderFilterTest.php | 2 +- .../ChillPersonBundle/Tests/Form/Type/PickPersonTypeTest.php | 2 +- .../Tests/Security/Authorization/PersonVoterTest.php | 2 +- .../Tests/Controller/ReportControllerNextTest.php | 2 +- .../Tests/Controller/ReportControllerTest.php | 2 +- .../Tests/Security/Authorization/ReportVoterTest.php | 2 +- .../ChillReportBundle/Tests/Timeline/TimelineProviderTest.php | 4 ++-- 67 files changed, 76 insertions(+), 76 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityReasonAggregatorTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityReasonAggregatorTest.php index 8988a8f3a..fb98f0a8e 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityReasonAggregatorTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityReasonAggregatorTest.php @@ -26,7 +26,7 @@ final class ActivityReasonAggregatorTest extends AbstractAggregatorTest */ private $aggregator; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityTypeAggregatorTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityTypeAggregatorTest.php index 4529a8e9f..7959825a7 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityTypeAggregatorTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityTypeAggregatorTest.php @@ -26,7 +26,7 @@ final class ActivityTypeAggregatorTest extends AbstractAggregatorTest */ private $aggregator; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityUserAggregatorTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityUserAggregatorTest.php index 67b8c8716..056ba6049 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityUserAggregatorTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Aggregator/ActivityUserAggregatorTest.php @@ -26,7 +26,7 @@ final class ActivityUserAggregatorTest extends AbstractAggregatorTest */ private $aggregator; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Export/CountActivityTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Export/CountActivityTest.php index db371a1a2..cbf562dfa 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Export/CountActivityTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Export/CountActivityTest.php @@ -24,7 +24,7 @@ final class CountActivityTest extends AbstractExportTest */ private $export; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Export/ListActivityTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Export/ListActivityTest.php index 599ce2338..46d23b023 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Export/ListActivityTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Export/ListActivityTest.php @@ -24,7 +24,7 @@ final class ListActivityTest extends AbstractExportTest */ private $export; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Export/StatActivityDurationSumTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Export/StatActivityDurationSumTest.php index ce8345272..c69a31b5a 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Export/StatActivityDurationSumTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Export/StatActivityDurationSumTest.php @@ -26,7 +26,7 @@ final class StatActivityDurationSumTest extends AbstractExportTest */ private $export; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityReasonFilterTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityReasonFilterTest.php index 77564fa1f..cbac6febd 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityReasonFilterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/ActivityReasonFilterTest.php @@ -25,7 +25,7 @@ final class ActivityReasonFilterTest extends AbstractFilterTest */ private $filter; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonHavingActivityBetweenDateFilterTest.php b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonHavingActivityBetweenDateFilterTest.php index 3adda9df3..f444c368b 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonHavingActivityBetweenDateFilterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Export/Filter/PersonHavingActivityBetweenDateFilterTest.php @@ -26,7 +26,7 @@ final class PersonHavingActivityBetweenDateFilterTest extends AbstractFilterTest */ private $filter; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Form/ActivityTypeTest.php b/src/Bundle/ChillActivityBundle/Tests/Form/ActivityTypeTest.php index a739074ef..15842e729 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Form/ActivityTypeTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Form/ActivityTypeTest.php @@ -45,7 +45,7 @@ final class ActivityTypeTest extends KernelTestCase */ protected $user; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityReasonTest.php b/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityReasonTest.php index f765de0af..76e8e438c 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityReasonTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityReasonTest.php @@ -29,7 +29,7 @@ final class TranslatableActivityReasonTest extends TypeTestCase */ private static $prophet; - public function setUp(): void + protected function setUp(): void { parent::setUp(); } diff --git a/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityTypeTest.php b/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityTypeTest.php index c2e5ceb14..68f206da2 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityTypeTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Form/Type/TranslatableActivityTypeTest.php @@ -31,7 +31,7 @@ final class TranslatableActivityTypeTest extends KernelTestCase */ protected $container; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php b/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php index da3a8b83e..b3d8472c6 100644 --- a/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php +++ b/src/Bundle/ChillActivityBundle/Tests/Security/Authorization/ActivityVoterTest.php @@ -44,7 +44,7 @@ final class ActivityVoterTest extends KernelTestCase */ protected $voter; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->voter = self::$kernel->getContainer() diff --git a/src/Bundle/ChillAsideActivityBundle/src/Tests/Controller/AsideActivityControllerTest.php b/src/Bundle/ChillAsideActivityBundle/src/Tests/Controller/AsideActivityControllerTest.php index c2e6e13b9..1dea9bc0c 100644 --- a/src/Bundle/ChillAsideActivityBundle/src/Tests/Controller/AsideActivityControllerTest.php +++ b/src/Bundle/ChillAsideActivityBundle/src/Tests/Controller/AsideActivityControllerTest.php @@ -26,7 +26,7 @@ final class AsideActivityControllerTest extends WebTestCase { use PrepareClientTrait; - public function setUp(): void + protected function setUp(): void { parent::setUp(); self::bootKernel(); diff --git a/src/Bundle/ChillCalendarBundle/Tests/Controller/CalendarControllerTest.php b/src/Bundle/ChillCalendarBundle/Tests/Controller/CalendarControllerTest.php index fa5c4e569..813bb87bd 100644 --- a/src/Bundle/ChillCalendarBundle/Tests/Controller/CalendarControllerTest.php +++ b/src/Bundle/ChillCalendarBundle/Tests/Controller/CalendarControllerTest.php @@ -26,7 +26,7 @@ final class CalendarControllerTest extends WebTestCase /** * Setup before each test method (see phpunit doc). */ - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->client = self::createClient([], [ diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsChoiceTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsChoiceTest.php index dca4be283..db27ec921 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsChoiceTest.php +++ b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsChoiceTest.php @@ -37,7 +37,7 @@ final class CustomFieldsChoiceTest extends KernelTestCase */ private $cfProvider; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); @@ -46,7 +46,7 @@ final class CustomFieldsChoiceTest extends KernelTestCase $this->cfChoice = $this->cfProvider->getCustomFieldByType('choice'); } - public function tearDown() + protected function tearDown(): void { parent::tearDown(); } diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsNumberTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsNumberTest.php index 8dab08d9d..60381f567 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsNumberTest.php +++ b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsNumberTest.php @@ -34,7 +34,7 @@ final class CustomFieldsNumberTest extends \Symfony\Bundle\FrameworkBundle\Test\ */ private $formBuilder; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsTextTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsTextTest.php index fe8b782f3..50bf689d4 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsTextTest.php +++ b/src/Bundle/ChillCustomFieldsBundle/Tests/CustomFields/CustomFieldsTextTest.php @@ -28,7 +28,7 @@ final class CustomFieldsTextTest extends WebTestCase */ private $customFieldProvider; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->customFieldProvider = self::$kernel->getContainer() diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextIntegerExtensionTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextIntegerExtensionTest.php index 0f0be7d50..1c8b8e143 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextIntegerExtensionTest.php +++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextIntegerExtensionTest.php @@ -27,7 +27,7 @@ final class PostTextIntegerExtensionTest extends KernelTestCase */ private $formBuilder; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextNumberExtensionTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextNumberExtensionTest.php index 0079f8cd9..8469b6210 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextNumberExtensionTest.php +++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Form/Extension/PostTextNumberExtensionTest.php @@ -27,7 +27,7 @@ final class PostTextNumberExtensionTest extends KernelTestCase */ private $formBuilder; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Service/CustomFieldsHelperTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Service/CustomFieldsHelperTest.php index a0ad42186..b08ca05c0 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Tests/Service/CustomFieldsHelperTest.php +++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Service/CustomFieldsHelperTest.php @@ -33,7 +33,7 @@ final class CustomFieldsHelperTest extends KernelTestCase */ private $randomCFText; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldRenderingTwigTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldRenderingTwigTest.php index 8c6867f53..ab43936eb 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldRenderingTwigTest.php +++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldRenderingTwigTest.php @@ -34,7 +34,7 @@ final class CustomFieldRenderingTwigTest extends KernelTestCase */ private $cfRendering; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->cfRendering = self::$kernel->getContainer() diff --git a/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldsGroupRenderingTwigTest.php b/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldsGroupRenderingTwigTest.php index fe14d3204..b950d562e 100644 --- a/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldsGroupRenderingTwigTest.php +++ b/src/Bundle/ChillCustomFieldsBundle/Tests/Templating/Twig/CustomFieldsGroupRenderingTwigTest.php @@ -36,7 +36,7 @@ final class CustomFieldsGroupRenderingTwigTest extends KernelTestCase */ private $cfRendering; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->cfRendering = self::$kernel->getContainer() diff --git a/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php b/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php index 2b93b476c..9cd9243b3 100644 --- a/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php +++ b/src/Bundle/ChillEventBundle/Tests/Controller/ParticipationControllerTest.php @@ -44,7 +44,7 @@ final class ParticipationControllerTest extends WebTestCase */ private $personsIdsCache = []; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php b/src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php index a0ce577f8..30479b1a4 100644 --- a/src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php +++ b/src/Bundle/ChillEventBundle/Tests/Search/EventSearchTest.php @@ -68,7 +68,7 @@ final class EventSearchTest extends WebTestCase */ protected $prophet; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); /** @var \Symfony\Component\HttpKernel\KernelInterface $kernel */ @@ -96,7 +96,7 @@ final class EventSearchTest extends WebTestCase $this->createEvents(); } - public function tearDown() + protected function tearDown(): void { foreach ($this->events as $event) { $this->entityManager->createQuery('DELETE FROM ChillEventBundle:Event e WHERE e.id = :event_id') diff --git a/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php b/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php index ec3105c3c..d0f4eaa97 100644 --- a/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php +++ b/src/Bundle/ChillMainBundle/Test/Export/AbstractFilterTest.php @@ -32,7 +32,7 @@ abstract class AbstractFilterTest extends KernelTestCase */ protected $prophet; - public function setUp(): void + protected function setUp(): void { $this->prepareProphet(); } diff --git a/src/Bundle/ChillMainBundle/Tests/Authorization/ParentRoleHelperTest.php b/src/Bundle/ChillMainBundle/Tests/Authorization/ParentRoleHelperTest.php index 132ca73f8..69a3ac733 100644 --- a/src/Bundle/ChillMainBundle/Tests/Authorization/ParentRoleHelperTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Authorization/ParentRoleHelperTest.php @@ -23,7 +23,7 @@ final class ParentRoleHelperTest extends KernelTestCase { private ParentRoleHelper $parentRoleHelper; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->parentRoleHelper = self::$container->get(ParentRoleHelper::class); diff --git a/src/Bundle/ChillMainBundle/Tests/Controller/AddressControllerTest.php b/src/Bundle/ChillMainBundle/Tests/Controller/AddressControllerTest.php index 596ab147e..441a323ac 100644 --- a/src/Bundle/ChillMainBundle/Tests/Controller/AddressControllerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Controller/AddressControllerTest.php @@ -26,7 +26,7 @@ final class AddressControllerTest extends \Symfony\Bundle\FrameworkBundle\Test\W private KernelBrowser $client; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->client = $this->getClientAuthenticated(); diff --git a/src/Bundle/ChillMainBundle/Tests/Controller/UserControllerTest.php b/src/Bundle/ChillMainBundle/Tests/Controller/UserControllerTest.php index 390cf46e0..f5d76ef8f 100644 --- a/src/Bundle/ChillMainBundle/Tests/Controller/UserControllerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Controller/UserControllerTest.php @@ -26,7 +26,7 @@ final class UserControllerTest extends WebTestCase private array $toDelete = []; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php index 41085b482..b915121e7 100644 --- a/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Export/ExportManagerTest.php @@ -42,14 +42,14 @@ final class ExportManagerTest extends KernelTestCase */ private $prophet; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->prophet = new \Prophecy\Prophet(); } - public function tearDown() + protected function tearDown(): void { $this->prophet->checkPredictions(); } diff --git a/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php b/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php index 98549671f..ca9eef6c6 100644 --- a/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Pagination/PageTest.php @@ -27,7 +27,7 @@ final class PageTest extends KernelTestCase protected $prophet; - public function setUp(): void + protected function setUp(): void { $this->prophet = new \Prophecy\Prophet(); } diff --git a/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php b/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php index 824666690..23bd4d890 100644 --- a/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Pagination/PaginatorTest.php @@ -28,7 +28,7 @@ final class PaginatorTest extends KernelTestCase protected $prophet; - public function setUp(): void + protected function setUp(): void { $this->prophet = new \Prophecy\Prophet(); } diff --git a/src/Bundle/ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php b/src/Bundle/ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php index 479607c9b..9f0291007 100644 --- a/src/Bundle/ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Routing/Loader/RouteLoaderTest.php @@ -23,7 +23,7 @@ final class RouteLoaderTest extends KernelTestCase { private $router; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->router = self::$kernel->getContainer()->get('router'); diff --git a/src/Bundle/ChillMainBundle/Tests/Search/AbstractSearchTest.php b/src/Bundle/ChillMainBundle/Tests/Search/AbstractSearchTest.php index ac2f22741..e04b33e59 100644 --- a/src/Bundle/ChillMainBundle/Tests/Search/AbstractSearchTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Search/AbstractSearchTest.php @@ -24,7 +24,7 @@ final class AbstractSearchTest extends \PHPUnit\Framework\TestCase */ private $stub; - public function setUp(): void + protected function setUp(): void { $this->stub = $this->getMockForAbstractClass('Chill\MainBundle\Search\AbstractSearch'); } diff --git a/src/Bundle/ChillMainBundle/Tests/Search/SearchProviderTest.php b/src/Bundle/ChillMainBundle/Tests/Search/SearchProviderTest.php index 8a1313a10..2e7aeb37f 100644 --- a/src/Bundle/ChillMainBundle/Tests/Search/SearchProviderTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Search/SearchProviderTest.php @@ -26,7 +26,7 @@ final class SearchProviderTest extends TestCase */ private $search; - public function setUp(): void + protected function setUp(): void { $this->search = new SearchProvider(); diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php index 9ff063da9..f4984167f 100644 --- a/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Security/Authorization/AuthorizationHelperTest.php @@ -38,7 +38,7 @@ final class AuthorizationHelperTest extends KernelTestCase use PrepareUserTrait; use ProphecyTrait; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); } diff --git a/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php b/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php index 1c77fd327..d79833416 100644 --- a/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Security/PasswordRecover/TokenManagerTest.php @@ -25,7 +25,7 @@ final class TokenManagerTest extends KernelTestCase { protected $tokenManager; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php index 56f2a9fc9..bc0e6d8cb 100644 --- a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/DefaultScopeResolverTest.php @@ -25,7 +25,7 @@ final class DefaultScopeResolverTest extends TestCase { private DefaultScopeResolver $scopeResolver; - public function setUp(): void + protected function setUp(): void { $this->scopeResolver = new DefaultScopeResolver(); } diff --git a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/ScopeResolverDispatcherTest.php b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/ScopeResolverDispatcherTest.php index c6d2adc1d..5d15e7d91 100644 --- a/src/Bundle/ChillMainBundle/Tests/Security/Resolver/ScopeResolverDispatcherTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Security/Resolver/ScopeResolverDispatcherTest.php @@ -26,7 +26,7 @@ final class ScopeResolverDispatcherTest extends TestCase { private ScopeResolverDispatcher $scopeResolverDispatcher; - public function setUp(): void + protected function setUp(): void { $this->scopeResolverDispatcher = new ScopeResolverDispatcher([new DefaultScopeResolver()]); } diff --git a/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DateNormalizerTest.php b/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DateNormalizerTest.php index 072e5f6b0..c925954bf 100644 --- a/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DateNormalizerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Serializer/Normalizer/DateNormalizerTest.php @@ -30,7 +30,7 @@ final class DateNormalizerTest extends KernelTestCase { private Prophet $prophet; - public function setUp(): void + protected function setUp(): void { $this->prophet = new Prophet(); } diff --git a/src/Bundle/ChillMainBundle/Tests/Services/MenuComposerTest.php b/src/Bundle/ChillMainBundle/Tests/Services/MenuComposerTest.php index f876a3d43..b7df8018e 100644 --- a/src/Bundle/ChillMainBundle/Tests/Services/MenuComposerTest.php +++ b/src/Bundle/ChillMainBundle/Tests/Services/MenuComposerTest.php @@ -32,7 +32,7 @@ final class MenuComposerTest extends KernelTestCase */ private $menuComposer; - public function setUp(): void + protected function setUp(): void { self::bootKernel(['environment' => 'test']); $this->menuComposer = self::$container diff --git a/src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/AccompanyingPeriodConfidentialTest.php b/src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/AccompanyingPeriodConfidentialTest.php index 45b24b90e..debc1ef50 100644 --- a/src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/AccompanyingPeriodConfidentialTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/AccompanyingPeriod/AccompanyingPeriodConfidentialTest.php @@ -35,7 +35,7 @@ final class AccompanyingPeriodConfidentialTest extends WebTestCase /** * Setup before each test method (see phpunit doc). */ - public function setUp(): void + protected function setUp(): void { $this->client = self::createClient([], [ 'PHP_AUTH_USER' => 'fred', diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseApiControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseApiControllerTest.php index 86da67ebf..8e3e61639 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseApiControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseApiControllerTest.php @@ -59,7 +59,7 @@ final class AccompanyingCourseApiControllerTest extends WebTestCase /** * Setup before each test method (see phpunit doc). */ - public function setUp(): void + protected function setUp(): void { $this->client = self::createClient([], [ 'PHP_AUTH_USER' => 'center a_social', diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseControllerTest.php index 20eadf94b..bfc67ecda 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingCourseControllerTest.php @@ -32,7 +32,7 @@ final class AccompanyingCourseControllerTest extends WebTestCase { use PrepareClientTrait; - public function setUp(): void + protected function setUp(): void { parent::setUp(); self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingPeriodControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingPeriodControllerTest.php index fdd7b0102..ae694fbfe 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingPeriodControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/AccompanyingPeriodControllerTest.php @@ -64,7 +64,7 @@ final class AccompanyingPeriodControllerTest extends WebTestCase /** * Setup before each test method (see phpunit doc). */ - public function setUp(): void + protected function setUp(): void { $this->client = self::createClient([], [ 'PHP_AUTH_USER' => 'center a_social', @@ -87,7 +87,7 @@ final class AccompanyingPeriodControllerTest extends WebTestCase /** * TearDown after each test method (see phpunit doc). */ - public function tearDown() + protected function tearDown(): void { self::$em->refresh($this->person); self::$em->remove($this->person); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonAddressControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonAddressControllerTest.php index b9ef1a08f..2aba394eb 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonAddressControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonAddressControllerTest.php @@ -63,7 +63,7 @@ final class PersonAddressControllerTest extends WebTestCase /** * Prepare client and create a random person. */ - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php index fd990943a..69d6f2b11 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerCreateTest.php @@ -67,7 +67,7 @@ final class PersonControllerCreateTest extends WebTestCase $em->flush(); } - public function setUp(): void + protected function setUp(): void { $this->client = $this->getClientAuthenticated(); } diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php index c44c166c9..087c3e186 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateTest.php @@ -51,7 +51,7 @@ final class PersonControllerUpdateTest extends WebTestCase /** * Prepare client and create a random person. */ - public function setUp(): void + protected function setUp(): void { self::bootKernel(); @@ -76,7 +76,7 @@ final class PersonControllerUpdateTest extends WebTestCase $this->client = $this->getClientAuthenticated(); } - public function tearDown() + protected function tearDown(): void { $this->refreshPerson(); $this->em->remove($this->person); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateWithHiddenFieldsTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateWithHiddenFieldsTest.php index 3db165016..ac655d8ce 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateWithHiddenFieldsTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerUpdateWithHiddenFieldsTest.php @@ -50,7 +50,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase /** * Prepare client and create a random person. */ - public function setUp(): void + protected function setUp(): void { self::bootKernel(['environment' => 'test_with_hidden_fields']); @@ -83,7 +83,7 @@ final class PersonControllerUpdateWithHiddenFieldsTest extends WebTestCase ); } - public function tearDown() + protected function tearDown(): void { $this->refreshPerson(); $this->em->remove($this->person); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerViewTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerViewTest.php index 5a90e9d87..b68606680 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerViewTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerViewTest.php @@ -35,7 +35,7 @@ final class PersonControllerViewTest extends WebTestCase */ private $viewUrl; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); @@ -57,7 +57,7 @@ final class PersonControllerViewTest extends WebTestCase $this->viewUrl = '/en/person/' . $this->person->getId() . '/general'; } - public function tearDown() + protected function tearDown(): void { $this->refreshPerson(); $this->em->remove($this->person); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerViewWithHiddenFieldsTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerViewWithHiddenFieldsTest.php index 9c40e4e3e..602dd41e8 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerViewWithHiddenFieldsTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonControllerViewWithHiddenFieldsTest.php @@ -35,7 +35,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase */ private $viewUrl; - public function setUp(): void + protected function setUp(): void { self::bootKernel(['environment' => 'test_with_hidden_fields']); @@ -57,7 +57,7 @@ final class PersonControllerViewWithHiddenFieldsTest extends WebTestCase $this->viewUrl = '/en/person/' . $this->person->getId() . '/general'; } - public function tearDown() + protected function tearDown(): void { $this->refreshPerson(); $this->em->remove($this->person); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonDuplicateControllerViewTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonDuplicateControllerViewTest.php index 45e5e4527..3ebb63990 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/PersonDuplicateControllerViewTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/PersonDuplicateControllerViewTest.php @@ -20,7 +20,7 @@ use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; */ final class PersonDuplicateControllerViewTest extends WebTestCase { - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/RelationshipApiControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/RelationshipApiControllerTest.php index a7dd608f9..5b6d89974 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/RelationshipApiControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/RelationshipApiControllerTest.php @@ -39,7 +39,7 @@ final class RelationshipApiControllerTest extends WebTestCase */ private ?array $relations = null; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->client = $this->getClientAuthenticated(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Controller/SocialIssueApiControllerTest.php b/src/Bundle/ChillPersonBundle/Tests/Controller/SocialIssueApiControllerTest.php index 0ea7c5e8c..4ffc9fdc4 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Controller/SocialIssueApiControllerTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Controller/SocialIssueApiControllerTest.php @@ -26,7 +26,7 @@ final class SocialIssueApiControllerTest extends WebTestCase { use PrepareClientTrait; - public function setUp(): void + protected function setUp(): void { parent::setUp(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AgeAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AgeAggregatorTest.php index 4763a4fb1..f858f248a 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AgeAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/AgeAggregatorTest.php @@ -25,7 +25,7 @@ final class AgeAggregatorTest extends AbstractAggregatorTest */ private $aggregator; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/GenderAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/GenderAggregatorTest.php index 4230a58b0..f295aa78c 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/GenderAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/GenderAggregatorTest.php @@ -24,7 +24,7 @@ final class GenderAggregatorTest extends AbstractAggregatorTest */ private $aggregator; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/NationalityAggregatorTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/NationalityAggregatorTest.php index de055fe46..dd06135b9 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/NationalityAggregatorTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Aggregator/NationalityAggregatorTest.php @@ -24,7 +24,7 @@ final class NationalityAggregatorTest extends AbstractAggregatorTest */ private $aggregator; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Export/CountPersonTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Export/CountPersonTest.php index 49357fdcd..831de2933 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Export/CountPersonTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Export/CountPersonTest.php @@ -26,7 +26,7 @@ final class CountPersonTest extends AbstractExportTest */ private $export; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListPersonTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListPersonTest.php index bf7fb9e0a..f3408a064 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListPersonTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Export/ListPersonTest.php @@ -28,7 +28,7 @@ final class ListPersonTest extends AbstractExportTest */ private $export; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingPeriodFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingPeriodFilterTest.php index bcc5751d0..2b0ea2788 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingPeriodFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/AccompanyingPeriodFilterTest.php @@ -26,7 +26,7 @@ final class AccompanyingPeriodFilterTest extends AbstractFilterTest */ private $filter; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/BirthdayFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/BirthdayFilterTest.php index 718ea8fdd..18eda9071 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/BirthdayFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/BirthdayFilterTest.php @@ -25,7 +25,7 @@ final class BirthdayFilterTest extends AbstractFilterTest */ private $filter; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/GenderFilterTest.php b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/GenderFilterTest.php index 4aecb81ba..7e7a584cb 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Export/Filter/GenderFilterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Export/Filter/GenderFilterTest.php @@ -25,7 +25,7 @@ final class GenderFilterTest extends AbstractFilterTest */ private $filter; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Form/Type/PickPersonTypeTest.php b/src/Bundle/ChillPersonBundle/Tests/Form/Type/PickPersonTypeTest.php index 89ac7a9d3..c3e8c0669 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Form/Type/PickPersonTypeTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Form/Type/PickPersonTypeTest.php @@ -32,7 +32,7 @@ final class PickPersonTypeTest extends KernelTestCase */ protected $user; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); diff --git a/src/Bundle/ChillPersonBundle/Tests/Security/Authorization/PersonVoterTest.php b/src/Bundle/ChillPersonBundle/Tests/Security/Authorization/PersonVoterTest.php index 22e9a4acd..43cf00452 100644 --- a/src/Bundle/ChillPersonBundle/Tests/Security/Authorization/PersonVoterTest.php +++ b/src/Bundle/ChillPersonBundle/Tests/Security/Authorization/PersonVoterTest.php @@ -42,7 +42,7 @@ final class PersonVoterTest extends KernelTestCase */ protected $voter; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->voter = self::$container diff --git a/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerNextTest.php b/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerNextTest.php index be16290fa..92984406c 100644 --- a/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerNextTest.php +++ b/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerNextTest.php @@ -38,7 +38,7 @@ final class ReportControllerNextTest extends WebTestCase */ protected $person; - public function setUp(): void + protected function setUp(): void { self::bootKernel(); // get person from fixture diff --git a/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerTest.php b/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerTest.php index 612ff1b8f..7958b6b3f 100644 --- a/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerTest.php +++ b/src/Bundle/ChillReportBundle/Tests/Controller/ReportControllerTest.php @@ -98,7 +98,7 @@ final class ReportControllerTest extends WebTestCase ->findOneBy(['username' => 'center a_social']); } - public function setUp(): void + protected function setUp(): void { self::$client = self::createClient([], [ 'PHP_AUTH_USER' => 'center a_social', diff --git a/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php b/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php index cb0e6d3f0..40c22ee4b 100644 --- a/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php +++ b/src/Bundle/ChillReportBundle/Tests/Security/Authorization/ReportVoterTest.php @@ -45,7 +45,7 @@ final class ReportVoterTest extends KernelTestCase { } - public function setUp(): void + protected function setUp(): void { self::bootKernel(); $this->voter = self::$kernel->getContainer() diff --git a/src/Bundle/ChillReportBundle/Tests/Timeline/TimelineProviderTest.php b/src/Bundle/ChillReportBundle/Tests/Timeline/TimelineProviderTest.php index ab709dbe5..647c1ae96 100644 --- a/src/Bundle/ChillReportBundle/Tests/Timeline/TimelineProviderTest.php +++ b/src/Bundle/ChillReportBundle/Tests/Timeline/TimelineProviderTest.php @@ -45,7 +45,7 @@ final class TimelineProviderTest extends WebTestCase /** * Create a person with a report associated with the person. */ - public function setUp(): void + protected function setUp(): void { self::bootKernel(); @@ -86,7 +86,7 @@ final class TimelineProviderTest extends WebTestCase self::$em->flush(); } - public function tearDown() + protected function tearDown(): void { //static::$em->refresh($this->person); //static::$em->refresh($this->report);