protected function BynderWidgetsTest::setUp in Bynder 8
Same name and namespace in other branches
- 8.3 tests/src/Functional/BynderWidgetsTest.php \Drupal\Tests\bynder\Functional\BynderWidgetsTest::setUp()
- 8.2 tests/src/Functional/BynderWidgetsTest.php \Drupal\Tests\bynder\Functional\BynderWidgetsTest::setUp()
- 4.0.x tests/src/Functional/BynderWidgetsTest.php \Drupal\Tests\bynder\Functional\BynderWidgetsTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ BynderWidgetsTest.php, line 28
Class
- BynderWidgetsTest
- Tests the Bynder Entity Browser widgets.
Namespace
Drupal\Tests\bynder\FunctionalCode
protected function setUp() {
parent::setUp();
$account = $this
->drupalCreateUser([
'access bynder entity browser pages',
'dropzone upload files',
]);
$this
->drupalLogin($account);
\Drupal::service('config.factory')
->getEditable('bynder.settings')
->set('consumer_key', 'key')
->set('consumer_secret', 'secret')
->set('token', 'token')
->set('token_secret', 'secret')
->set('account_domain', 'https://dam.bynder.com')
->save();
}