ReferenceTest.php in Select (or other) 8
File
tests/src/Functional/ReferenceTest.php
View source
<?php
namespace Drupal\Tests\select_or_other\Functional;
class ReferenceTest extends TestBase {
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);
}
public function testEmptyOption($empty_option = '') {
parent::testEmptyOption('My cool new value');
}
}