diff --git a/modules/custom/az_core/tests/src/Functional/QuickstartFunctionalTestBase.php b/modules/custom/az_core/tests/src/Functional/QuickstartFunctionalTestBase.php index a0a261e947..bff723022a 100644 --- a/modules/custom/az_core/tests/src/Functional/QuickstartFunctionalTestBase.php +++ b/modules/custom/az_core/tests/src/Functional/QuickstartFunctionalTestBase.php @@ -11,4 +11,12 @@ abstract class QuickstartFunctionalTestBase extends BrowserTestBase { use AllowDrupalLoginSetupTrait; + /** + * {@inheritdoc} + */ + protected function setUp(): void { + parent::setUp(); + $this->enableDrupalLogin(); + } + } diff --git a/modules/custom/az_core/tests/src/FunctionalJavascript/QuickstartFunctionalJavascriptTestBase.php b/modules/custom/az_core/tests/src/FunctionalJavascript/QuickstartFunctionalJavascriptTestBase.php index c38198963b..e07e447b36 100644 --- a/modules/custom/az_core/tests/src/FunctionalJavascript/QuickstartFunctionalJavascriptTestBase.php +++ b/modules/custom/az_core/tests/src/FunctionalJavascript/QuickstartFunctionalJavascriptTestBase.php @@ -11,4 +11,12 @@ abstract class QuickstartFunctionalJavascriptTestBase extends WebDriverTestBase { use AllowDrupalLoginSetupTrait; + /** + * {@inheritdoc} + */ + protected function setUp(): void { + parent::setUp(); + $this->enableDrupalLogin(); + } + } diff --git a/modules/custom/az_core/tests/src/Traits/AllowDrupalLoginSetupTrait.php b/modules/custom/az_core/tests/src/Traits/AllowDrupalLoginSetupTrait.php index 89bbd2131d..9e3befdd94 100644 --- a/modules/custom/az_core/tests/src/Traits/AllowDrupalLoginSetupTrait.php +++ b/modules/custom/az_core/tests/src/Traits/AllowDrupalLoginSetupTrait.php @@ -8,11 +8,9 @@ trait AllowDrupalLoginSetupTrait { /** - * {@inheritdoc} + * Change AZ CAS module settings to enable normal Drupal logins. */ - protected function setUp(): void { - parent::setUp(); - + public function enableDrupalLogin(): void { // Turn off az_cas disable_login_form setting. $config = $this ->config('az_cas.settings');