Skip to content
Snippets Groups Projects
Commit e7b0d531 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2172717 by andypost, tim.plunkett: Missing local tasks on the 'Manage form display' page.

parent 839dcc1c
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -101,7 +101,6 @@ protected function alterRoutes(RouteCollection $collection, $provider) {
"$path/form-display/{form_mode_name}",
array(
'_form' => '\Drupal\field_ui\FormDisplayOverview',
'form_mode_name' => NULL,
) + $defaults,
array('_field_ui_form_mode_access' => 'administer ' . $entity_type . ' form display')
);
......
......@@ -52,8 +52,24 @@ public function testFieldUIRoutes() {
$this->drupalGet('admin/structure/types/manage/article/fields');
$this->assertTitle('Manage fields | Drupal');
$this->assertLocalTasks();
$this->drupalGet('admin/structure/types/manage/article');
$this->assertLocalTasks();
$this->drupalGet('admin/structure/types/manage/article/form-display');
$this->assertLocalTasks();
$this->drupalGet('admin/structure/types/manage/article/display');
$this->assertLocalTasks();
}
/**
* Asserts that local tasks exists.
*/
public function assertLocalTasks() {
$this->assertLink('Edit');
$this->assertLink('Manage fields');
$this->assertLink('Manage display');
$this->assertLink('Manage form display');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment