You are here

protected function GdprFieldConfigTest::setUp in General Data Protection Regulation 3.0.x

Same name and namespace in other branches
  1. 8.2 modules/gdpr_fields/tests/src/Functional/GdprFieldConfigTest.php \Drupal\Tests\gdpr_fields\Functional\GdprFieldConfigTest::setUp()
  2. 8 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 41

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();
}