public function MultipleSelectsPostUpdateAddElementTypeToWidgets::setUp in Multiple Selects 8
Overrides WebTestBase::setUp() for update testing.
The main difference in this method is that rather than performing the installation via the installer, a database is loaded. Additional work is then needed to set various things such as the config directories and the container that would normally be done via the installer.
Overrides UpdatePathTestBase::setUp
File
- tests/
src/ Functional/ Update/ MultipleSelectsPostUpdateAddElementTypeToWidgets.php, line 41
Class
- MultipleSelectsPostUpdateAddElementTypeToWidgets
- Update test that checks if the element type was added to the widget settings.
Namespace
Drupal\Tests\multiple_selects\Functional\UpdateCode
public function setUp() : void {
parent::setUp();
$this->entityFormDisplayStorage = $this->container
->get('entity_type.manager')
->getStorage('entity_form_display');
}