You are here

protected function CustomProvidersUiTest::setUp in oEmbed Providers 1.0.x

Same name in this branch
  1. 1.0.x tests/src/Functional/CustomProvidersUiTest.php \Drupal\Tests\oembed_providers\Functional\CustomProvidersUiTest::setUp()
  2. 1.0.x tests/src/FunctionalJavascript/CustomProvidersUiTest.php \Drupal\Tests\oembed_providers\FunctionalJavascript\CustomProvidersUiTest::setUp()
Same name and namespace in other branches
  1. 2.x tests/src/Functional/CustomProvidersUiTest.php \Drupal\Tests\oembed_providers\Functional\CustomProvidersUiTest::setUp()
  2. 1.1.x tests/src/Functional/CustomProvidersUiTest.php \Drupal\Tests\oembed_providers\Functional\CustomProvidersUiTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/CustomProvidersUiTest.php, line 47

Class

CustomProvidersUiTest
Class CustomProvidersUiTest.

Namespace

Drupal\Tests\oembed_providers\Functional

Code

protected function setUp() {
  parent::setUp();

  // Create an admin user.
  $this->adminUser = $this
    ->drupalCreateUser([
    'access administration pages',
    'administer oembed providers',
  ]);

  // Create a non-admin user.
  $this->nonAdminUser = $this
    ->drupalCreateUser([
    'access administration pages',
  ]);
}