Skip to content
Snippets Groups Projects
Commit d02178ba authored by catch's avatar catch
Browse files

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

parent 7df39b5d
No related branches found
No related tags found
6 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!1012Issue #3226887: Hreflang on non-canonical content pages,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10,!596Issue #3046532: deleting an entity reference field, used in a contextual view, makes the whole site unrecoverable,!496Issue #2463967: Use .user.ini file for PHP settings,!16Draft: Resolve #2081585 "History storage"
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: entity.contact_form.edit_form:
title: 'Edit' title: 'Edit'
route_name: entity.contact_form.edit_form route_name: entity.contact_form.edit_form
weight: 1
base_route: entity.contact_form.edit_form base_route: entity.contact_form.edit_form
entity.user.contact_form: entity.user.contact_form:
......
...@@ -50,6 +50,7 @@ class ContactSitewideTest extends BrowserTestBase { ...@@ -50,6 +50,7 @@ class ContactSitewideTest extends BrowserTestBase {
protected function setUp(): void { protected function setUp(): void {
parent::setUp(); parent::setUp();
$this->drupalPlaceBlock('system_breadcrumb_block'); $this->drupalPlaceBlock('system_breadcrumb_block');
$this->drupalPlaceBlock('local_tasks_block');
$this->drupalPlaceBlock('local_actions_block'); $this->drupalPlaceBlock('local_actions_block');
$this->drupalPlaceBlock('page_title_block'); $this->drupalPlaceBlock('page_title_block');
} }
...@@ -291,6 +292,9 @@ public function testSiteWideContact() { ...@@ -291,6 +292,9 @@ public function testSiteWideContact() {
$this->assertSession()->statusCodeEquals(200); $this->assertSession()->statusCodeEquals(200);
$this->assertSession()->fieldValueEquals('label', $label); $this->assertSession()->fieldValueEquals('label', $label);
// Verify contact "View" tab exists.
$this->assertSession()->linkExists('View');
// Test field UI and field integration. // Test field UI and field integration.
$this->drupalGet('admin/structure/contact'); $this->drupalGet('admin/structure/contact');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment