public function AgreementTestBase::createPrivilegedUser in Agreement 3.0.x
Same name and namespace in other branches
- 8.2 tests/src/Functional/AgreementTestBase.php \Drupal\Tests\agreement\Functional\AgreementTestBase::createPrivilegedUser()
Create a privileged user account.
Return value
\Drupal\user\Entity\User|false The user account.
4 calls to AgreementTestBase::createPrivilegedUser()
- AgreementCustomFrequencyTest::testInvalidCustomFrequency in tests/
src/ Functional/ AgreementCustomFrequencyTest.php - Asserts invalid custom frequency.
- AgreementCustomUnprivilegedUserTest::testAgreementPages in tests/
src/ Functional/ AgreementCustomUnprivilegedUserTest.php - Asserts that agreement only functions on the front page.
- AgreementDefaultsPrivilegedUserTest::testAgreement in tests/
src/ Functional/ AgreementDefaultsPrivilegedUserTest.php - Asserts that the default settings work for the admin user.
- AgreementRecordsViewsTest::testAgreementRecordsView in tests/
src/ Functional/ AgreementRecordsViewsTest.php - Asserts that there is a row for users whether they have agreed or not.
File
- tests/
src/ Functional/ AgreementTestBase.php, line 100
Class
- AgreementTestBase
- Tests the agreement functionality.
Namespace
Drupal\Tests\agreement\FunctionalCode
public function createPrivilegedUser() {
return $this
->createUser([
'administer agreements',
'bypass node access',
'access administration pages',
'administer site configuration',
'access content',
]);
}