protected function FormModeManagerBase::setUp in Form mode manager 8.2
Same name and namespace in other branches
- 8 tests/src/Functional/FormModeManagerBase.php \Drupal\Tests\form_mode_manager\Functional\FormModeManagerBase::setUp()
Overrides BrowserTestBase::setUp
1 call to FormModeManagerBase::setUp()
- FormModeManagerUiTest::setUp in tests/
src/ Functional/ FormModeManagerUiTest.php
1 method overrides FormModeManagerBase::setUp()
- FormModeManagerUiTest::setUp in tests/
src/ Functional/ FormModeManagerUiTest.php
File
- tests/
src/ Functional/ FormModeManagerBase.php, line 112
Class
- FormModeManagerBase
- Provides a test case for form_mode_manager functional tests.
Namespace
Drupal\Tests\form_mode_manager\FunctionalCode
protected function setUp() {
parent::setUp();
// Setup correct blocks in regions.
$this
->drupalPlaceBlock('local_actions_block');
$this
->drupalPlaceBlock('local_tasks_block');
$this
->drupalPlaceBlock('page_title_block');
$this->nodeTypeFmm1 = $this
->drupalCreateContentType([
'type' => 'fmm_test',
'name' => 'Form Mode Manager Test 1',
]);
$this->nodeFormMode = $this
->drupalCreateFormMode('node');
$this->userFormMode = $this
->drupalCreateFormMode('user');
$this->container
->get('router.builder')
->rebuildIfNeeded();
$this
->drupalLogin($this->rootUser);
$this
->setUpFormMode("admin/structure/types/manage/{$this->nodeTypeFmm1->id()}/form-display", $this->nodeFormMode
->id());
$this
->setUpFormMode("admin/config/people/accounts/form-display", $this->userFormMode
->id());
$this
->setUpUsers();
}