You are here

protected function FractionFieldTest::setUp in Fraction 2.x

Same name and namespace in other branches
  1. 8 tests/src/Functional/FractionFieldTest.php \Drupal\Tests\fraction\Functional\FractionFieldTest::setUp()

Overrides BrowserTestBase::setUp

File

tests/src/Functional/FractionFieldTest.php, line 35

Class

FractionFieldTest
Tests the creation of fraction fields.

Namespace

Drupal\Tests\fraction\Functional

Code

protected function setUp() {
  parent::setUp();
  $this
    ->drupalLogin($this
    ->drupalCreateUser([
    'view test entity',
    'administer entity_test content',
    'administer content types',
    'administer node fields',
    'administer node display',
    'administer node form display',
    'bypass node access',
    'administer entity_test fields',
    'access administration pages',
  ]));
}