Skip to content
Snippets Groups Projects
Commit ea33cc21 authored by catch's avatar catch
Browse files

Issue #3469116 by prashant.c, pameeela, kostask, shalini_jha, sagarmohite0031,...

Issue #3469116 by prashant.c, pameeela, kostask, shalini_jha, sagarmohite0031, benjifisher, mrdalesmith, smustgrave, kristiaanvandeneynde, quietone, b_sharpe, nod_: Logout confirmation form shows inappropriate confirmation description
parent c88bf78b
No related branches found
No related tags found
3 merge requests!11197Issue #3506427 by eduardo morales alberti: Remove responsive_image.ajax from hook,!2964Issue #2865710 : Dependencies from only one instance of a widget are used in display modes,!10223132456: Fix issue where views instances are emptied before an ajax request is complete
Pipeline #421168 passed with warnings
Pipeline: drupal

#421173

    ......@@ -22,6 +22,14 @@ public function getConfirmText(): TranslatableMarkup {
    return $this->t('Log out');
    }
    /**
    * {@inheritdoc}
    */
    public function getDescription() {
    // phpcs:ignore Drupal.Semantics.FunctionT.EmptyString
    return $this->t('');
    }
    /**
    * {@inheritdoc}
    */
    ......
    ......@@ -50,6 +50,9 @@ public function testLogout(): void {
    $this->drupalGet($logoutUrl, ['query' => ['token' => '123']]);
    $this->assertTrue($this->drupalUserIsLoggedIn($account));
    $this->assertSession()->addressEquals($confirmUrl);
    // Test to ensure the text 'This action cannot be undone.' is not
    // present on the page.
    $this->assertSession()->pageTextNotContains('This action cannot be undone.');
    // Submitting the confirmation form correctly logs the user out.
    $this->submitForm([], 'Log out');
    $this->assertFalse($this->drupalUserIsLoggedIn($account));
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Please register or to comment