You are here

public function AgreementLogoutExceptionTest::testNoAgreement in Agreement 3.0.x

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/AgreementLogoutExceptionTest.php \Drupal\Tests\agreement\Functional\AgreementLogoutExceptionTest::testNoAgreement()

Asserts that no agreement page was reached when going to logout page.

File

tests/src/Functional/AgreementLogoutExceptionTest.php, line 15

Class

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

Namespace

Drupal\Tests\agreement\Functional

Code

public function testNoAgreement() {
  $account = $this
    ->createUnprivilegedUser();
  $this
    ->drupalLogin($account);
  $this
    ->drupalGet('/user/logout');
  $this
    ->assertNotAgreementPage($this->agreement);
}