public function AgreementTestBase::createRevokeUser in Agreement 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/AgreementTestBase.php \Drupal\Tests\agreement\Functional\AgreementTestBase::createRevokeUser()
Create a user account that can revoke own agreement.
Return value
\Drupal\user\Entity\User|false The user account.
1 call to AgreementTestBase::createRevokeUser()
- AgreementRevokeTest::testAgreement in tests/
src/ Functional/ AgreementRevokeTest.php - Asserts that an user that has agreed can revoke the agreement.
File
- tests/
src/ Functional/ AgreementTestBase.php, line 136
Class
- AgreementTestBase
- Tests the agreement functionality.
Namespace
Drupal\Tests\agreement\FunctionalCode
public function createRevokeUser() {
return $this
->createUser([
'access content',
'revoke own agreement',
]);
}