protected function GdprFieldConfigTest::setUp in General Data Protection Regulation 8.2
Same name and namespace in other branches
- 8 modules/gdpr_fields/tests/src/Functional/GdprFieldConfigTest.php \Drupal\Tests\gdpr_fields\Functional\GdprFieldConfigTest::setUp()
- 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\FunctionalCode
protected function setUp() {
parent::setUp();
$this->adminUser = $this
->createUser([], NULL, TRUE);
// @TODO update page permission requirements.
$this->adminUser
->addRole('administrator');
$this->adminUser
->save();
}