protected function ConfigurationFormTest::setUp in Bynder 8
Same name and namespace in other branches
- 8.3 tests/src/FunctionalJavascript/ConfigurationFormTest.php \Drupal\Tests\bynder\FunctionalJavascript\ConfigurationFormTest::setUp()
- 8.2 tests/src/FunctionalJavascript/ConfigurationFormTest.php \Drupal\Tests\bynder\FunctionalJavascript\ConfigurationFormTest::setUp()
- 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\FunctionalJavascriptCode
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();
}