public function AgreementTestBase::createUnprivilegedUser in Agreement 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/AgreementTestBase.php \Drupal\Tests\agreement\Functional\AgreementTestBase::createUnprivilegedUser()
Create an unprivileged user account.
Return value
\Drupal\user\Entity\User|false The user account.
11 calls to AgreementTestBase::createUnprivilegedUser()
- AgreementAccessDeniedRedirectTest::setUp in tests/
src/ Functional/ AgreementAccessDeniedRedirectTest.php - AgreementCustomFrequencyTest::setUp in tests/
src/ Functional/ AgreementCustomFrequencyTest.php - AgreementCustomUnprivilegedUserTest::setUp in tests/
src/ Functional/ AgreementCustomUnprivilegedUserTest.php - AgreementDefaultsUnprivilegedUserTest::testAgreement in tests/
src/ Functional/ AgreementDefaultsUnprivilegedUserTest.php - Asserts that the default settings work for the end user.
- AgreementLogoutExceptionTest::testNoAgreement in tests/
src/ Functional/ AgreementLogoutExceptionTest.php - Asserts that no agreement page was reached when going to logout page.
File
- tests/
src/ Functional/ AgreementTestBase.php, line 116
Class
- AgreementTestBase
- Tests the agreement functionality.
Namespace
Drupal\Tests\agreement\FunctionalCode
public function createUnprivilegedUser() {
return $this
->createUser([
'access content',
]);
}