You are here

protected function SimpleRecaptchaJavascriptTestBase::setUp in Simple Google reCAPTCHA 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/SimpleRecaptchaJavascriptTestBase.php, line 48

Class

SimpleRecaptchaJavascriptTestBase
JavaScripts tests for the Simple reCAPTCHA module.

Namespace

Drupal\Tests\simple_recaptcha\FunctionalJavascript

Code

protected function setUp() : void {
  parent::setUp();
  $this->page = $this
    ->getSession()
    ->getPage();
  $this->webAssert = $this
    ->assertSession();
  $this->user = $this
    ->drupalCreateUser([
    'administer site configuration',
    'administer simple_recaptcha',
  ], 'webadmin');
  $this
    ->configureModule();
}