You are here

protected function ConfigurationFormTest::setUp in Bynder 8

Same name and namespace in other branches
  1. 8.3 tests/src/FunctionalJavascript/ConfigurationFormTest.php \Drupal\Tests\bynder\FunctionalJavascript\ConfigurationFormTest::setUp()
  2. 8.2 tests/src/FunctionalJavascript/ConfigurationFormTest.php \Drupal\Tests\bynder\FunctionalJavascript\ConfigurationFormTest::setUp()
  3. 4.0.x tests/src/FunctionalJavascript/ConfigurationFormTest.php \Drupal\Tests\bynder\FunctionalJavascript\ConfigurationFormTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/ConfigurationFormTest.php, line 23

Class

ConfigurationFormTest
Tests the Configuration form for bynder API.

Namespace

Drupal\Tests\bynder\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'administer bynder configuration',
    'access administration pages',
  ]));

  // Set dummy initial values to prevent derivatives batch reload from
  // triggering on the initial save.
  $this
    ->config('bynder.settings')
    ->set('consumer_key', 'consumer_key')
    ->set('consumer_secret', 'consumer_secret')
    ->set('token', 'token')
    ->set('token_secret', 'token_secret')
    ->set('account_domain', 'account_domain')
    ->save();
}