From 37a3b4e55c533b7777413ed9e63c78f1cbec07a2 Mon Sep 17 00:00:00 2001 From: Mike Decker Date: Thu, 7 Sep 2023 21:26:29 -0700 Subject: [PATCH] fixup for unit tests --- tests/src/Kernel/EventSubscriber/EventSubscriberTest.php | 2 +- tests/src/Kernel/Plugin/InstallTask/RouteRebuilderTest.php | 2 +- tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php | 2 +- tests/src/Kernel/Plugin/InstallTask/UsersTest.php | 2 +- tests/src/Kernel/StanfordProfilePermissionsTest.php | 2 +- tests/src/Unit/Config/ConfigOverridesTest.php | 2 +- tests/src/Unit/Plugin/HelpSection/ProfileConnectSectionTest.php | 2 +- tests/src/Unit/Plugin/HelpSection/ProfileHelpSectionTest.php | 2 +- .../src/Unit/Plugin/HelpSection/ProfileResourceSectionTest.php | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php b/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php index f5f7751b8..d94f09e8d 100644 --- a/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php +++ b/tests/src/Kernel/EventSubscriber/EventSubscriberTest.php @@ -50,7 +50,7 @@ class EventSubscriberTest extends KernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installEntitySchema('file'); diff --git a/tests/src/Kernel/Plugin/InstallTask/RouteRebuilderTest.php b/tests/src/Kernel/Plugin/InstallTask/RouteRebuilderTest.php index 0dd2bacdf..7b1ccc959 100644 --- a/tests/src/Kernel/Plugin/InstallTask/RouteRebuilderTest.php +++ b/tests/src/Kernel/Plugin/InstallTask/RouteRebuilderTest.php @@ -25,7 +25,7 @@ class RouteRebuilderTest extends KernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->setInstallProfile('stanford_profile'); $this->installEntitySchema('user'); diff --git a/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php b/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php index 18f00db36..609a87aea 100644 --- a/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php +++ b/tests/src/Kernel/Plugin/InstallTask/SiteSettingsTest.php @@ -48,7 +48,7 @@ class SiteSettingsTest extends KernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->setInstallProfile('stanford_profile'); diff --git a/tests/src/Kernel/Plugin/InstallTask/UsersTest.php b/tests/src/Kernel/Plugin/InstallTask/UsersTest.php index 8299a4f6c..690ba25d8 100644 --- a/tests/src/Kernel/Plugin/InstallTask/UsersTest.php +++ b/tests/src/Kernel/Plugin/InstallTask/UsersTest.php @@ -25,7 +25,7 @@ class UsersTest extends KernelTestBase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->setInstallProfile('stanford_profile'); diff --git a/tests/src/Kernel/StanfordProfilePermissionsTest.php b/tests/src/Kernel/StanfordProfilePermissionsTest.php index 8da9d6f59..4cffe056c 100644 --- a/tests/src/Kernel/StanfordProfilePermissionsTest.php +++ b/tests/src/Kernel/StanfordProfilePermissionsTest.php @@ -32,7 +32,7 @@ class StanfordProfilePermissionsTest extends KernelTestBase { /** * {@inheritdoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $this->installSchema('system', ['key_value_expire']); $this->installEntitySchema('user'); diff --git a/tests/src/Unit/Config/ConfigOverridesTest.php b/tests/src/Unit/Config/ConfigOverridesTest.php index a473e1e1b..f2c725da4 100644 --- a/tests/src/Unit/Config/ConfigOverridesTest.php +++ b/tests/src/Unit/Config/ConfigOverridesTest.php @@ -27,7 +27,7 @@ class ConfigOverridesTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $state = $this->createMock(StateInterface::class); $state->method('get') diff --git a/tests/src/Unit/Plugin/HelpSection/ProfileConnectSectionTest.php b/tests/src/Unit/Plugin/HelpSection/ProfileConnectSectionTest.php index ab7a9e727..656911a42 100644 --- a/tests/src/Unit/Plugin/HelpSection/ProfileConnectSectionTest.php +++ b/tests/src/Unit/Plugin/HelpSection/ProfileConnectSectionTest.php @@ -18,7 +18,7 @@ class ProfileConnectSectionTest 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/tests/src/Unit/Plugin/HelpSection/ProfileHelpSectionTest.php b/tests/src/Unit/Plugin/HelpSection/ProfileHelpSectionTest.php index 4e81ec64e..019901d88 100644 --- a/tests/src/Unit/Plugin/HelpSection/ProfileHelpSectionTest.php +++ b/tests/src/Unit/Plugin/HelpSection/ProfileHelpSectionTest.php @@ -19,7 +19,7 @@ class ProfileHelpSectionTest 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/tests/src/Unit/Plugin/HelpSection/ProfileResourceSectionTest.php b/tests/src/Unit/Plugin/HelpSection/ProfileResourceSectionTest.php index 13bc3d6e0..edc851eda 100644 --- a/tests/src/Unit/Plugin/HelpSection/ProfileResourceSectionTest.php +++ b/tests/src/Unit/Plugin/HelpSection/ProfileResourceSectionTest.php @@ -19,7 +19,7 @@ class ProfileResourceSectionTest extends UnitTestCase { /** * {@inheritDoc} */ - protected function setUp(): void { + public function setup(): void { parent::setUp(); $container = new ContainerBuilder(); $container->set('string_translation', $this->getStringTranslationStub());