Commit d02178ba authored by catch's avatar catch

Issue #3173756 by paulocs, anmolgoyal74, eric.chenchao: Add local task link "View" to contact form

parent 7df39b5d
entity.contact_form.canonical:
title: 'View'
route_name: entity.contact_form.canonical
weight: 0
base_route: entity.contact_form.edit_form
entity.contact_form.edit_form:
title: 'Edit'
route_name: entity.contact_form.edit_form
weight: 1
base_route: entity.contact_form.edit_form
entity.user.contact_form:
......
......@@ -50,6 +50,7 @@ class ContactSitewideTest extends BrowserTestBase {
protected function setUp(): void {
parent::setUp();
$this->drupalPlaceBlock('system_breadcrumb_block');
$this->drupalPlaceBlock('local_tasks_block');
$this->drupalPlaceBlock('local_actions_block');
$this->drupalPlaceBlock('page_title_block');
}
......@@ -291,6 +292,9 @@ public function testSiteWideContact() {
$this->assertSession()->statusCodeEquals(200);
$this->assertSession()->fieldValueEquals('label', $label);
// Verify contact "View" tab exists.
$this->assertSession()->linkExists('View');
// Test field UI and field integration.
$this->drupalGet('admin/structure/contact');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment