public function ReferenceTest::setUp in Select (or other) 8
Same name and namespace in other branches
- 4.x tests/src/Functional/ReferenceTest.php \Drupal\Tests\select_or_other\Functional\ReferenceTest::setUp()
Overrides TestBase::setUp
File
- tests/
src/ Functional/ ReferenceTest.php, line 15
Class
- ReferenceTest
- Tests the the functionality of the Reference widget.
Namespace
Drupal\Tests\select_or_other\FunctionalCode
public function setUp() {
parent::setUp();
$field_settings = [
'target_type' => 'taxonomy_term',
];
$widget = 'select_or_other_reference';
$widgets = [
'select_or_other_select',
'select_or_other_buttons',
];
$this
->prepareTestFields('entity_reference', $field_settings, $widget, $widgets);
$user = $this
->drupalCreateUser($this->defaultPermissions);
$this
->drupalLogin($user);
}