You are here

protected function ShsTestBase::setUp in Simple hierarchical select 2.0.x

Overrides BrowserTestBase::setUp

File

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

Class

ShsTestBase
Base test class for SHS browser tests.

Namespace

Drupal\Tests\shs\Functional

Code

protected function setUp() : void {
  parent::setUp();
  $this->fieldName = mb_strtolower($this
    ->randomMachineName());
  $this
    ->prepareSetup($this->fieldName);
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'create article content',
    'administer taxonomy',
  ]));
}