You are here

public function SimpleRecaptchaWebformTestBase::setUp in Simple Google reCAPTCHA 8

Perform initial setup tasks that run before every test method.

Overrides BrowserTestBase::setUp

File

modules/simple_recaptcha_webform/tests/src/Functional/SimpleRecaptchaWebformTestBase.php, line 44

Class

SimpleRecaptchaWebformTestBase
Test base for simple_recaptcha_webform module.

Namespace

Drupal\Tests\simple_recaptcha_webform\Functional

Code

public function setUp() {
  parent::setUp();
  $this->user = $this
    ->drupalCreateUser([
    'administer site configuration',
    'administer simple_recaptcha',
    'access any webform configuration',
    'administer webform',
  ], 'webadmin');
}