protected function FormModeManagerUiTest::setUp in Form mode manager 8
Same name and namespace in other branches
- 8.2 tests/src/Functional/FormModeManagerUiTest.php \Drupal\Tests\form_mode_manager\Functional\FormModeManagerUiTest::setUp()
Overrides FormModeManagerBase::setUp
File
- tests/
src/ Functional/ FormModeManagerUiTest.php, line 34
Class
- FormModeManagerUiTest
- Tests the Form mode manager user interfaces.
Namespace
Drupal\Tests\form_mode_manager\FunctionalCode
protected function setUp() {
parent::setUp();
$this->vocabulary = $this
->createVocabulary();
// Generate contents to this tests.
for ($i = 0; $i < 3; $i++) {
$this
->createTerm($this->vocabulary, [
'title' => "Term {$i}",
]);
$this->nodes[] = $this
->createNode([
'type' => $this->nodeTypeFmm1
->id(),
]);
}
}