You are here

public function AgreementTestBase::createUnprivilegedUser in Agreement 3.0.x

Same name and namespace in other branches
  1. 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.

... See full list

File

tests/src/Functional/AgreementTestBase.php, line 116

Class

AgreementTestBase
Tests the agreement functionality.

Namespace

Drupal\Tests\agreement\Functional

Code

public function createUnprivilegedUser() {
  return $this
    ->createUser([
    'access content',
  ]);
}