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

8.0.x
webchick 2014-01-13 18:58:03 -08:00
parent 839dcc1c5d
commit e7b0d531eb
2 changed files with 16 additions and 1 deletions

View File

@ -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')
);

View File

@ -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');
}