From 10da342818e4b8fe4e87482eb74bcff33de5c404 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Thu, 7 Sep 2023 21:23:49 -0700 Subject: [PATCH] Update unit tests for d10 --- .github/workflows/tests.yml | 6 +++--- .../tests/src/Kernel/Pattern/PatternMediaTest.php | 2 +- .../tests/src/Unit/Layouts/JumpstartUiLayoutsTest.php | 2 +- .../src/Unit/Layouts/JumpstartUiThreeColumnLayoutTest.php | 2 +- .../src/Unit/Layouts/JumpstartUiTwoColumnLayoutTest.php | 2 +- .../tests/src/Unit/Plugin/Block/PageHeadingBlockTest.php | 2 +- .../tests/src/Unit/Plugin/Block/SkipNavAnchorBlockTest.php | 2 +- .../src/Unit/Plugin/TwigPlugin/JumpstartUITwigTest.php | 2 +- .../Plugin/paragraphs/Behavior/HeroPatternBehaviorTest.php | 2 +- .../paragraphs/Behavior/ListParagraphBehaviorTest.php | 2 +- .../src/Unit/Plugin/Condition/ResponseCodeConditionTest.php | 2 +- .../migrate/process/ExploreCoursesMigrationPluginsTest.php | 2 +- .../Field/FieldWidget/ExploreCoursesUrlWidgetTest.php | 2 +- .../StanfordEventsImporterAPIURLFieldWidgetTest.php | 2 +- .../tests/src/Unit/Config/ConfigOverridesTest.php | 2 +- .../tests/src/Kernel/Commands/IntranetCommandsTest.php | 2 +- .../tests/src/Kernel/IntranetKernelTestBase.php | 2 +- .../Field/FieldWidget/EntityAccessFieldWidgetTest.php | 2 +- .../tests/src/Kernel/StanfordIntranetManagerTest.php | 2 +- .../tests/src/Unit/Plugin/Block/SignupBlockTest.php | 2 +- .../tests/src/Kernel/NotificationServiceTest.php | 2 +- .../tests/src/Kernel/StanfordNotificationTestBase.php | 2 +- .../Unit/Plugin/paragraphs/Behavior/CardBehaviorTest.php | 2 +- .../stanford_person_importer/tests/src/Unit/CapTest.php | 2 +- .../tests/src/Unit/Config/ConfigOverridesTest.php | 2 +- .../Kernel/EventSubscriber/StanfordPolicySubscriberTest.php | 2 +- .../src/Kernel/Commands/StanfordProfileCommandsTest.php | 2 +- .../tests/src/Kernel/PublicationTestBase.php | 2 +- .../src/Kernel/EventSubscriber/FormEventSubscriberTest.php | 2 +- .../Plugin/Field/FieldWidget/SamlRoleMappingWidgetTest.php | 2 +- 30 files changed, 32 insertions(+), 32 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 71963c4a..f225f6a1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,7 +25,7 @@ jobs: env: CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}} run: | - composer global require su-sws/stanford-caravan:dev-8.x-3.x + composer global require su-sws/stanford-caravan:10.x-dev ~/.composer/vendor/bin/sws-caravan phpunit /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --with-coverage - name: Save Test Results uses: actions/upload-artifact@v3 @@ -61,7 +61,7 @@ jobs: path: project - name: Run tests run: | - composer global require su-sws/stanford-caravan:dev-8.x-3.x + composer global require su-sws/stanford-caravan:10.x-dev ~/.composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=acceptance - name: Save Test Results uses: actions/upload-artifact@v3 @@ -100,7 +100,7 @@ jobs: path: project - name: Run tests run: | - composer global require su-sws/stanford-caravan:dev-8.x-3.x + composer global require su-sws/stanford-caravan:10.x-dev ~/.composer/vendor/bin/sws-caravan codeception /var/www/html --extension-dir=$GITHUB_WORKSPACE/project --suites=functional - name: Save Test Results uses: actions/upload-artifact@v3 diff --git a/modules/jumpstart_ui/tests/src/Kernel/Pattern/PatternMediaTest.php b/modules/jumpstart_ui/tests/src/Kernel/Pattern/PatternMediaTest.php index f5960647..f652d311 100644 --- a/modules/jumpstart_ui/tests/src/Kernel/Pattern/PatternMediaTest.php +++ b/modules/jumpstart_ui/tests/src/Kernel/Pattern/PatternMediaTest.php @@ -40,7 +40,7 @@ class PatternMediaTest extends KernelTestBase { /** * Setup. */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->container->get('theme_installer')->install(['stable9']); $this->container->get('config.factory') diff --git a/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiLayoutsTest.php b/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiLayoutsTest.php index 06775ac2..c7651850 100644 --- a/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiLayoutsTest.php +++ b/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiLayoutsTest.php @@ -18,7 +18,7 @@ class JumpstartUiLayoutsTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $container = new ContainerBuilder(); $container->set('string_translation', $this->getStringTranslationStub()); diff --git a/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiThreeColumnLayoutTest.php b/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiThreeColumnLayoutTest.php index 00181e51..f3caf01b 100644 --- a/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiThreeColumnLayoutTest.php +++ b/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiThreeColumnLayoutTest.php @@ -18,7 +18,7 @@ class JumpstartUiThreeColumnLayoutTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $container = new ContainerBuilder(); $container->set('string_translation', $this->getStringTranslationStub()); diff --git a/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiTwoColumnLayoutTest.php b/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiTwoColumnLayoutTest.php index 233030c7..19cfc010 100644 --- a/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiTwoColumnLayoutTest.php +++ b/modules/jumpstart_ui/tests/src/Unit/Layouts/JumpstartUiTwoColumnLayoutTest.php @@ -18,7 +18,7 @@ class JumpstartUiTwoColumnLayoutTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $container = new ContainerBuilder(); $container->set('string_translation', $this->getStringTranslationStub()); diff --git a/modules/jumpstart_ui/tests/src/Unit/Plugin/Block/PageHeadingBlockTest.php b/modules/jumpstart_ui/tests/src/Unit/Plugin/Block/PageHeadingBlockTest.php index e3a3941d..db44a940 100644 --- a/modules/jumpstart_ui/tests/src/Unit/Plugin/Block/PageHeadingBlockTest.php +++ b/modules/jumpstart_ui/tests/src/Unit/Plugin/Block/PageHeadingBlockTest.php @@ -47,7 +47,7 @@ class PageHeadingBlockTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $container = new ContainerBuilder(); diff --git a/modules/jumpstart_ui/tests/src/Unit/Plugin/Block/SkipNavAnchorBlockTest.php b/modules/jumpstart_ui/tests/src/Unit/Plugin/Block/SkipNavAnchorBlockTest.php index 375b6915..d7737db1 100644 --- a/modules/jumpstart_ui/tests/src/Unit/Plugin/Block/SkipNavAnchorBlockTest.php +++ b/modules/jumpstart_ui/tests/src/Unit/Plugin/Block/SkipNavAnchorBlockTest.php @@ -46,7 +46,7 @@ class SkipNavAnchorBlockTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $container = new ContainerBuilder(); diff --git a/modules/jumpstart_ui/tests/src/Unit/Plugin/TwigPlugin/JumpstartUITwigTest.php b/modules/jumpstart_ui/tests/src/Unit/Plugin/TwigPlugin/JumpstartUITwigTest.php index 338f2931..37399fe4 100644 --- a/modules/jumpstart_ui/tests/src/Unit/Plugin/TwigPlugin/JumpstartUITwigTest.php +++ b/modules/jumpstart_ui/tests/src/Unit/Plugin/TwigPlugin/JumpstartUITwigTest.php @@ -28,7 +28,7 @@ class JumpstartUITwigTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $container = new ContainerBuilder(); $container->set('string_translation', $this->getStringTranslationStub()); diff --git a/modules/jumpstart_ui/tests/src/Unit/Plugin/paragraphs/Behavior/HeroPatternBehaviorTest.php b/modules/jumpstart_ui/tests/src/Unit/Plugin/paragraphs/Behavior/HeroPatternBehaviorTest.php index e40ef6a9..2f5eb42c 100644 --- a/modules/jumpstart_ui/tests/src/Unit/Plugin/paragraphs/Behavior/HeroPatternBehaviorTest.php +++ b/modules/jumpstart_ui/tests/src/Unit/Plugin/paragraphs/Behavior/HeroPatternBehaviorTest.php @@ -27,7 +27,7 @@ class HeroPatternBehaviorTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $field_manager = $this->createMock(EntityFieldManagerInterface::class); diff --git a/modules/jumpstart_ui/tests/src/Unit/Plugin/paragraphs/Behavior/ListParagraphBehaviorTest.php b/modules/jumpstart_ui/tests/src/Unit/Plugin/paragraphs/Behavior/ListParagraphBehaviorTest.php index d5204372..286b77cb 100644 --- a/modules/jumpstart_ui/tests/src/Unit/Plugin/paragraphs/Behavior/ListParagraphBehaviorTest.php +++ b/modules/jumpstart_ui/tests/src/Unit/Plugin/paragraphs/Behavior/ListParagraphBehaviorTest.php @@ -29,7 +29,7 @@ class ListParagraphBehaviorTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $field_manager = $this->createMock(EntityFieldManagerInterface::class); diff --git a/modules/response_code_condition/tests/src/Unit/Plugin/Condition/ResponseCodeConditionTest.php b/modules/response_code_condition/tests/src/Unit/Plugin/Condition/ResponseCodeConditionTest.php index 6bb80f26..87711971 100644 --- a/modules/response_code_condition/tests/src/Unit/Plugin/Condition/ResponseCodeConditionTest.php +++ b/modules/response_code_condition/tests/src/Unit/Plugin/Condition/ResponseCodeConditionTest.php @@ -20,7 +20,7 @@ class ResponseCodeConditionTest extends UnitTestCase { protected $requestAttributes = []; - protected function setUp(): void { + public function setup(): void { parent::setUp(); $request_stack = $this->createMock(RequestStack::class); diff --git a/modules/stanford_courses/modules/stanford_courses_importer/tests/Kernel/Plugin/migrate/process/ExploreCoursesMigrationPluginsTest.php b/modules/stanford_courses/modules/stanford_courses_importer/tests/Kernel/Plugin/migrate/process/ExploreCoursesMigrationPluginsTest.php index e319a367..54699c1a 100644 --- a/modules/stanford_courses/modules/stanford_courses_importer/tests/Kernel/Plugin/migrate/process/ExploreCoursesMigrationPluginsTest.php +++ b/modules/stanford_courses/modules/stanford_courses_importer/tests/Kernel/Plugin/migrate/process/ExploreCoursesMigrationPluginsTest.php @@ -54,7 +54,7 @@ class ExploreCoursesMigrationPluginsTest extends EntityKernelTestBase { /** * {@inheritDoc}. */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->processManager = $this->container->get('plugin.manager.migrate.process'); $this->section_xml = <<installEntitySchema('user'); $this->installEntitySchema('node'); diff --git a/modules/stanford_events/modules/stanford_events_importer/tests/src/Kernel/Plugin/Field/FieldWidget/StanfordEventsImporterAPIURLFieldWidgetTest.php b/modules/stanford_events/modules/stanford_events_importer/tests/src/Kernel/Plugin/Field/FieldWidget/StanfordEventsImporterAPIURLFieldWidgetTest.php index 008517a1..42611abc 100644 --- a/modules/stanford_events/modules/stanford_events_importer/tests/src/Kernel/Plugin/Field/FieldWidget/StanfordEventsImporterAPIURLFieldWidgetTest.php +++ b/modules/stanford_events/modules/stanford_events_importer/tests/src/Kernel/Plugin/Field/FieldWidget/StanfordEventsImporterAPIURLFieldWidgetTest.php @@ -37,7 +37,7 @@ class StanfordEventsImporterAPIURLFieldWidgetTest extends KernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('user'); $this->installEntitySchema('node'); diff --git a/modules/stanford_events/modules/stanford_events_importer/tests/src/Unit/Config/ConfigOverridesTest.php b/modules/stanford_events/modules/stanford_events_importer/tests/src/Unit/Config/ConfigOverridesTest.php index 3ae17a28..560ff2fc 100644 --- a/modules/stanford_events/modules/stanford_events_importer/tests/src/Unit/Config/ConfigOverridesTest.php +++ b/modules/stanford_events/modules/stanford_events_importer/tests/src/Unit/Config/ConfigOverridesTest.php @@ -20,7 +20,7 @@ class ConfigOverridesTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->configPages = $this->createMock(ConfigPagesLoaderServiceInterface::class); $this->configPages->method('getValue')->will($this->returnCallback([$this, 'getConfigPagesValue'])); diff --git a/modules/stanford_intranet/tests/src/Kernel/Commands/IntranetCommandsTest.php b/modules/stanford_intranet/tests/src/Kernel/Commands/IntranetCommandsTest.php index 499bd587..455edd63 100644 --- a/modules/stanford_intranet/tests/src/Kernel/Commands/IntranetCommandsTest.php +++ b/modules/stanford_intranet/tests/src/Kernel/Commands/IntranetCommandsTest.php @@ -27,7 +27,7 @@ class IntranetCommandsTest extends IntranetKernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('config_pages'); ConfigPagesType::create([ diff --git a/modules/stanford_intranet/tests/src/Kernel/IntranetKernelTestBase.php b/modules/stanford_intranet/tests/src/Kernel/IntranetKernelTestBase.php index 000aa942..2a141ad2 100644 --- a/modules/stanford_intranet/tests/src/Kernel/IntranetKernelTestBase.php +++ b/modules/stanford_intranet/tests/src/Kernel/IntranetKernelTestBase.php @@ -32,7 +32,7 @@ abstract class IntranetKernelTestBase extends KernelTestBase { /** * {@inheritdoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('node'); $this->installEntitySchema('user'); diff --git a/modules/stanford_intranet/tests/src/Kernel/Plugin/Field/FieldWidget/EntityAccessFieldWidgetTest.php b/modules/stanford_intranet/tests/src/Kernel/Plugin/Field/FieldWidget/EntityAccessFieldWidgetTest.php index df78738d..c8fe70c1 100644 --- a/modules/stanford_intranet/tests/src/Kernel/Plugin/Field/FieldWidget/EntityAccessFieldWidgetTest.php +++ b/modules/stanford_intranet/tests/src/Kernel/Plugin/Field/FieldWidget/EntityAccessFieldWidgetTest.php @@ -20,7 +20,7 @@ class EntityAccessFieldWidgetTest extends IntranetKernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); /** @var \Drupal\Core\Entity\Display\EntityFormDisplayInterface $form_display */ diff --git a/modules/stanford_intranet/tests/src/Kernel/StanfordIntranetManagerTest.php b/modules/stanford_intranet/tests/src/Kernel/StanfordIntranetManagerTest.php index 9795878f..161724bb 100644 --- a/modules/stanford_intranet/tests/src/Kernel/StanfordIntranetManagerTest.php +++ b/modules/stanford_intranet/tests/src/Kernel/StanfordIntranetManagerTest.php @@ -16,7 +16,7 @@ */ class StanfordIntranetManagerTest extends IntranetKernelTestBase { - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->setSetting('file_private_path', $this->container->getParameter('site.path') . '/private'); mkdir($this->container->getParameter('site.path') . '/private', 0777, TRUE); diff --git a/modules/stanford_news/tests/src/Unit/Plugin/Block/SignupBlockTest.php b/modules/stanford_news/tests/src/Unit/Plugin/Block/SignupBlockTest.php index 0e65e253..6595112b 100644 --- a/modules/stanford_news/tests/src/Unit/Plugin/Block/SignupBlockTest.php +++ b/modules/stanford_news/tests/src/Unit/Plugin/Block/SignupBlockTest.php @@ -24,7 +24,7 @@ class SignupBlockTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $config = [ "id" => "signup_block", diff --git a/modules/stanford_notifications/tests/src/Kernel/NotificationServiceTest.php b/modules/stanford_notifications/tests/src/Kernel/NotificationServiceTest.php index 85a1618b..1afb9850 100644 --- a/modules/stanford_notifications/tests/src/Kernel/NotificationServiceTest.php +++ b/modules/stanford_notifications/tests/src/Kernel/NotificationServiceTest.php @@ -23,7 +23,7 @@ class NotificationServiceTest extends StanfordNotificationTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->service = \Drupal::service('notification_service'); } diff --git a/modules/stanford_notifications/tests/src/Kernel/StanfordNotificationTestBase.php b/modules/stanford_notifications/tests/src/Kernel/StanfordNotificationTestBase.php index 47ba6b54..ec3d3092 100644 --- a/modules/stanford_notifications/tests/src/Kernel/StanfordNotificationTestBase.php +++ b/modules/stanford_notifications/tests/src/Kernel/StanfordNotificationTestBase.php @@ -25,7 +25,7 @@ abstract class StanfordNotificationTestBase extends KernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('notification'); $this->installEntitySchema('user'); diff --git a/modules/stanford_paragraph_card/tests/src/Unit/Plugin/paragraphs/Behavior/CardBehaviorTest.php b/modules/stanford_paragraph_card/tests/src/Unit/Plugin/paragraphs/Behavior/CardBehaviorTest.php index 631cfa1f..40f37bfe 100644 --- a/modules/stanford_paragraph_card/tests/src/Unit/Plugin/paragraphs/Behavior/CardBehaviorTest.php +++ b/modules/stanford_paragraph_card/tests/src/Unit/Plugin/paragraphs/Behavior/CardBehaviorTest.php @@ -13,7 +13,7 @@ class CardBehaviorTest extends UnitTestCase { - protected function setUp(): void { + public function setup(): void { parent::setUp(); $container = new ContainerBuilder(); $container->set('string_translation', $this->getStringTranslationStub()); diff --git a/modules/stanford_person/modules/stanford_person_importer/tests/src/Unit/CapTest.php b/modules/stanford_person/modules/stanford_person_importer/tests/src/Unit/CapTest.php index c98c0f76..1b1ab5e0 100644 --- a/modules/stanford_person/modules/stanford_person_importer/tests/src/Unit/CapTest.php +++ b/modules/stanford_person/modules/stanford_person_importer/tests/src/Unit/CapTest.php @@ -61,7 +61,7 @@ class CapTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $guzzle = $this->createMock(ClientInterface::class); $guzzle->method('request') diff --git a/modules/stanford_person/modules/stanford_person_importer/tests/src/Unit/Config/ConfigOverridesTest.php b/modules/stanford_person/modules/stanford_person_importer/tests/src/Unit/Config/ConfigOverridesTest.php index 04ae9642..fb31dc07 100644 --- a/modules/stanford_person/modules/stanford_person_importer/tests/src/Unit/Config/ConfigOverridesTest.php +++ b/modules/stanford_person/modules/stanford_person_importer/tests/src/Unit/Config/ConfigOverridesTest.php @@ -51,7 +51,7 @@ class ConfigOverridesTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->configPagesService = $this->createMock(ConfigPagesLoaderServiceInterface::class); diff --git a/modules/stanford_policy/tests/src/Kernel/EventSubscriber/StanfordPolicySubscriberTest.php b/modules/stanford_policy/tests/src/Kernel/EventSubscriber/StanfordPolicySubscriberTest.php index 2f70386a..e2fe083c 100644 --- a/modules/stanford_policy/tests/src/Kernel/EventSubscriber/StanfordPolicySubscriberTest.php +++ b/modules/stanford_policy/tests/src/Kernel/EventSubscriber/StanfordPolicySubscriberTest.php @@ -50,7 +50,7 @@ class StanfordPolicySubscriberTest extends KernelTestBase { */ protected $childNode; - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('node'); $this->installEntitySchema('user'); diff --git a/modules/stanford_profile_drush/tests/src/Kernel/Commands/StanfordProfileCommandsTest.php b/modules/stanford_profile_drush/tests/src/Kernel/Commands/StanfordProfileCommandsTest.php index 5abbdbce..5f043257 100644 --- a/modules/stanford_profile_drush/tests/src/Kernel/Commands/StanfordProfileCommandsTest.php +++ b/modules/stanford_profile_drush/tests/src/Kernel/Commands/StanfordProfileCommandsTest.php @@ -49,7 +49,7 @@ class StanfordProfileCommandsTest extends KernelTestBase { /** * {@inheritdoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('node'); $this->installEntitySchema('user'); diff --git a/modules/stanford_publication/tests/src/Kernel/PublicationTestBase.php b/modules/stanford_publication/tests/src/Kernel/PublicationTestBase.php index 01953445..d9ab261b 100644 --- a/modules/stanford_publication/tests/src/Kernel/PublicationTestBase.php +++ b/modules/stanford_publication/tests/src/Kernel/PublicationTestBase.php @@ -38,7 +38,7 @@ abstract class PublicationTestBase extends KernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('user'); $this->installEntitySchema('node'); diff --git a/tests/src/Kernel/EventSubscriber/FormEventSubscriberTest.php b/tests/src/Kernel/EventSubscriber/FormEventSubscriberTest.php index 3def3013..923eb745 100644 --- a/tests/src/Kernel/EventSubscriber/FormEventSubscriberTest.php +++ b/tests/src/Kernel/EventSubscriber/FormEventSubscriberTest.php @@ -32,7 +32,7 @@ class FormEventSubscriberTest extends SuProfileHelperKernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('paragraph'); $this->installSchema('file', ['file_usage']); diff --git a/tests/src/Kernel/Plugin/Field/FieldWidget/SamlRoleMappingWidgetTest.php b/tests/src/Kernel/Plugin/Field/FieldWidget/SamlRoleMappingWidgetTest.php index e68b84d8..ee8007ee 100644 --- a/tests/src/Kernel/Plugin/Field/FieldWidget/SamlRoleMappingWidgetTest.php +++ b/tests/src/Kernel/Plugin/Field/FieldWidget/SamlRoleMappingWidgetTest.php @@ -38,7 +38,7 @@ class SamlRoleMappingWidgetTest extends KernelTestBase { /** * {@inheritdoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('node');