You are here

protected function GeolocationFieldTest::setUp in Geolocation Field 8

Same name and namespace in other branches
  1. 8.3 tests/src/Functional/GeolocationFieldTest.php \Drupal\Tests\geolocation\Functional\GeolocationFieldTest::setUp()
  2. 8.2 tests/src/Functional/GeolocationFieldTest.php \Drupal\Tests\geolocation\Functional\GeolocationFieldTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/GeolocationFieldTest.php, line 36

Class

GeolocationFieldTest
Tests the creation of geolocation fields.

Namespace

Drupal\Tests\geolocation\Functional

Code

protected function setUp() {
  parent::setUp();
  $this->articleCreator = $this
    ->drupalCreateUser([
    'create geolocation_default_article content',
    'edit own geolocation_default_article content',
  ]);
  $this
    ->drupalLogin($this->articleCreator);
}