You are here

AgreementLogoutExceptionTest.php in Agreement 3.0.x

Same filename and directory in other branches
  1. 8.2 tests/src/Functional/AgreementLogoutExceptionTest.php

File

tests/src/Functional/AgreementLogoutExceptionTest.php
View source
<?php

namespace Drupal\Tests\agreement\Functional;


/**
 * Tests that a user logging out does not get agreement page.
 *
 * @group agreement
 */
class AgreementLogoutExceptionTest extends AgreementTestBase {

  /**
   * Asserts that no agreement page was reached when going to logout page.
   */
  public function testNoAgreement() {
    $account = $this
      ->createUnprivilegedUser();
    $this
      ->drupalLogin($account);
    $this
      ->drupalGet('/user/logout');
    $this
      ->assertNotAgreementPage($this->agreement);
  }

}

Classes

Namesort descending Description
AgreementLogoutExceptionTest Tests that a user logging out does not get agreement page.