public function AgreementLogoutExceptionTest::testNoAgreement in Agreement 8.2
Same name and namespace in other branches
- 3.0.x 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\FunctionalCode
public function testNoAgreement() {
$account = $this
->createUnprivilegedUser();
$this
->drupalLogin($account);
$this
->drupalGet('/user/logout');
$this
->assertNotAgreementPage($this->agreement);
}