protected function ThunderJavascriptTestBase::setUp in Thunder 6.0.x
Same name and namespace in other branches
- 8.5 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
- 8.2 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
- 8.3 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
- 8.4 tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
- 6.2.x tests/src/FunctionalJavascript/ThunderJavascriptTestBase.php \Drupal\Tests\thunder\FunctionalJavascript\ThunderJavascriptTestBase::setUp()
- 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\FunctionalJavascriptCode
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');
}
if (($facebook_id = getenv('FACEBOOK_APP_ID')) && ($facebook_secret = getenv('FACEBOOK_APP_SECRET'))) {
$instagram = \Drupal::configFactory()
->getEditable('media_entity_instagram.settings');
$instagram
->set('facebook_app_id', $facebook_id)
->set('facebook_app_secret', $facebook_secret)
->save();
}
}