public function AgreementBypassUserTest::testAgreement in Agreement 8.2
Same name and namespace in other branches
- 3.0.x 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\FunctionalCode
public function testAgreement() {
$account = $this
->drupalCreateUser([
'bypass agreement',
'access content',
]);
$this
->drupalLogin($account);
$this
->assertNotAgreementPage($this->agreement);
}