You are here

protected function OptionsFloatFieldImportTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php \Drupal\Tests\options\Functional\OptionsFloatFieldImportTest::setUp()

Overrides BrowserTestBase::setUp

File

core/modules/options/tests/src/Functional/OptionsFloatFieldImportTest.php, line 34

Class

OptionsFloatFieldImportTest
Tests option fields can be updated and created through config synchronization.

Namespace

Drupal\Tests\options\Functional

Code

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

  // Create test user.
  $admin_user = $this
    ->drupalCreateUser([
    'synchronize configuration',
    'access content',
    'access administration pages',
    'administer site configuration',
    'administer content types',
    'administer nodes',
    'bypass node access',
    'administer node fields',
    'administer node display',
  ]);
  $this
    ->drupalLogin($admin_user);
}