Skip to content

Commit

Permalink
#2403: Refactor AllowDrupalLogin test trait to not override parent::s…
Browse files Browse the repository at this point in the history
…etup().
  • Loading branch information
joeparsons committed May 17, 2023
1 parent 3904347 commit 6be2811
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@
abstract class QuickstartFunctionalTestBase extends BrowserTestBase {
use AllowDrupalLoginSetupTrait;

/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->enableDrupalLogin();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,12 @@
abstract class QuickstartFunctionalJavascriptTestBase extends WebDriverTestBase {
use AllowDrupalLoginSetupTrait;

/**
* {@inheritdoc}
*/
protected function setUp(): void {
parent::setUp();
$this->enableDrupalLogin();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 6be2811

Please sign in to comment.