protected function SettingsFormTest::setUp in oEmbed Providers 2.x
Same name and namespace in other branches
- 1.0.x tests/src/Functional/SettingsFormTest.php \Drupal\Tests\oembed_providers\Functional\SettingsFormTest::setUp()
- 1.1.x tests/src/Functional/SettingsFormTest.php \Drupal\Tests\oembed_providers\Functional\SettingsFormTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ Functional/ SettingsFormTest.php, line 50
Class
- SettingsFormTest
- Tests the global settings form.
Namespace
Drupal\Tests\oembed_providers\FunctionalCode
protected function setUp() : void {
parent::setUp();
// Create an admin user.
$this->adminUser = $this
->drupalCreateUser([
'access administration pages',
'administer blocks',
'administer oembed providers',
]);
// Create a non-admin user.
$this->nonAdminUser = $this
->drupalCreateUser([
'access administration pages',
]);
$this
->drupalPlaceBlock('system_messages_block');
}