You are here

public function SimpleRecaptchaTestBase::setUp in Simple Google reCAPTCHA 8

Perform initial setup tasks that run before every test method.

Overrides BrowserTestBase::setUp

File

tests/src/Functional/SimpleRecaptchaTestBase.php, line 38

Class

SimpleRecaptchaTestBase
Test base for simple_recaptcha module.

Namespace

Drupal\Tests\simple_recaptcha\Functional

Code

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