AgreementLogoutExceptionTest.php in Agreement 3.0.x
Same filename and directory in other branches
Namespace
Drupal\Tests\agreement\FunctionalFile
tests/src/Functional/AgreementLogoutExceptionTest.phpView 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
Name | Description |
---|---|
AgreementLogoutExceptionTest | Tests that a user logging out does not get agreement page. |