protected function LengthIndicatorTest::setUp in Length Indicator 8
Same name in this branch
- 8 tests/src/FunctionalJavascript/LengthIndicatorTest.php \Drupal\Tests\length_indicator\FunctionalJavascript\LengthIndicatorTest::setUp()
- 8 tests/src/Unit/LengthIndicatorTest.php \Drupal\Tests\length_indicator\Unit\LengthIndicatorTest::setUp()
Overrides BrowserTestBase::setUp
File
- tests/
src/ FunctionalJavascript/ LengthIndicatorTest.php, line 31
Class
- LengthIndicatorTest
- Tests the UI for entity displays.
Namespace
Drupal\Tests\length_indicator\FunctionalJavascriptCode
protected function setUp() {
parent::setUp();
// Create a field of each supported type.
$this
->createField('string', 'string_textfield');
$this
->createField('string_long', 'string_textarea');
$this
->drupalLogin($this
->drupalCreateUser([
'access administration pages',
'view test entity',
'administer entity_test content',
'administer entity_test fields',
'administer entity_test display',
'administer entity_test form display',
'view the administration theme',
]));
}