You are here

public function AgreementTestBase::createBypassUser 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::createBypassUser()

Create a user account that can bypass agreements.

Return value

\Drupal\user\Entity\User|false The user account.

File

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

Class

AgreementTestBase
Tests the agreement functionality.

Namespace

Drupal\Tests\agreement\Functional

Code

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