Issue #2172717 by andypost, tim.plunkett: Missing local tasks on the 'Manage form display' page.
parent
839dcc1c5d
commit
e7b0d531eb
|
@ -101,7 +101,6 @@ class RouteSubscriber extends RouteSubscriberBase {
|
|||
"$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 @@ class FieldUIRouteTest extends WebTestBase {
|
|||
|
||||
$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');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue