You are here

protected function ThunderJavascriptTestBase::setUp in Thunder 8.4

Same name and namespace in other branches
  1. 8.5 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
  2. 8.2 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
  3. 8.3 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
  4. 6.2.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
  5. 6.0.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
  6. 6.1.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()

Overrides BrowserTestBase::setUp

2 calls to ThunderJavascriptTestBase::setUp()
AutosaveFormTest::setUp in tests/src/FunctionalJavascript/Integration/AutosaveFormTest.php
MetaInformationTest::setUp in tests/src/FunctionalJavascript/MetaInformationTest.php
2 methods override ThunderJavascriptTestBase::setUp()
AutosaveFormTest::setUp in tests/src/FunctionalJavascript/Integration/AutosaveFormTest.php
MetaInformationTest::setUp in tests/src/FunctionalJavascript/MetaInformationTest.php

File

tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php, line 65

Class

ThunderJavascriptTestBase
Base class for Thunder Javascript functional tests.

Namespace

Drupal\Tests\thunder\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->logWithRole(static::$defaultUserRole);

  // Set flag to generate screenshots instead of comparing them.
  if (!empty($_SERVER['generateMode'])) {
    $this
      ->setGenerateMode(strtolower($_SERVER['generateMode']) === 'true');
  }
}