You are here

protected function GdprFieldConfigTest::setUp in General Data Protection Regulation 8.2

Same name and namespace in other branches
  1. 8 modules/gdpr_fields/tests/src/Functional/GdprFieldConfigTest.php \Drupal\Tests\gdpr_fields\Functional\GdprFieldConfigTest::setUp()
  2. 3.0.x modules/gdpr_fields/tests/src/Functional/GdprFieldConfigTest.php \Drupal\Tests\gdpr_fields\Functional\GdprFieldConfigTest::setUp()

Overrides BrowserTestBase::setUp

File

modules/gdpr_fields/tests/src/Functional/GdprFieldConfigTest.php, line 36

Class

GdprFieldConfigTest
Tests GDPR fields and configuration.

Namespace

Drupal\Tests\gdpr_fields\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->adminUser = $this
    ->createUser([], NULL, TRUE);

  // @TODO update page permission requirements.
  $this->adminUser
    ->addRole('administrator');
  $this->adminUser
    ->save();
}