You are here

public function AgreementBypassUserTest::testAgreement in Agreement 3.0.x

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

Asserts no agreement for a user with the "bypass agreement" permission.

File

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

Class

AgreementBypassUserTest
Tests the bypass agreement permission.

Namespace

Drupal\Tests\agreement\Functional

Code

public function testAgreement() {
  $account = $this
    ->drupalCreateUser([
    'bypass agreement',
    'access content',
  ]);
  $this
    ->drupalLogin($account);
  $this
    ->assertNotAgreementPage($this->agreement);
}