function EntityReferenceAutocompleteWidgetTest::setUp
Same name in other branches
- 8.9.x core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php \Drupal\FunctionalJavascriptTests\EntityReference\EntityReferenceAutocompleteWidgetTest::setUp()
- 10 core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php \Drupal\FunctionalJavascriptTests\EntityReference\EntityReferenceAutocompleteWidgetTest::setUp()
- 11.x core/tests/Drupal/FunctionalJavascriptTests/EntityReference/EntityReferenceAutocompleteWidgetTest.php \Drupal\FunctionalJavascriptTests\EntityReference\EntityReferenceAutocompleteWidgetTest::setUp()
Overrides BrowserTestBase::setUp
File
-
core/
tests/ Drupal/ FunctionalJavascriptTests/ EntityReference/ EntityReferenceAutocompleteWidgetTest.php, line 34
Class
- EntityReferenceAutocompleteWidgetTest
- Tests the output of entity reference autocomplete widgets.
Namespace
Drupal\FunctionalJavascriptTests\EntityReferenceCode
protected function setUp() : void {
parent::setUp();
// Create a Content type and two test nodes.
$this->createContentType([
'type' => 'page',
]);
$this->createNode([
'title' => 'Test page',
]);
$this->createNode([
'title' => 'Page test',
]);
$user = $this->drupalCreateUser([
'access content',
'create page content',
]);
$this->drupalLogin($user);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.