diff --git a/core/modules/contact/lib/Drupal/contact/Tests/ContactPersonalTest.php b/core/modules/contact/lib/Drupal/contact/Tests/ContactPersonalTest.php index e974ec6..a6ca7f9 100644 --- a/core/modules/contact/lib/Drupal/contact/Tests/ContactPersonalTest.php +++ b/core/modules/contact/lib/Drupal/contact/Tests/ContactPersonalTest.php @@ -94,6 +94,8 @@ function testPersonalContactAccess() { $this->drupalLogin($this->web_user); $this->drupalGet('user/' . $this->admin_user->id() . '/contact'); $this->assertResponse(200); + // Check the page title is properly displayed. + $this->assertRaw(t('Contact @username', array('@username' => $this->admin_user->getUsername()))); // Test denied access to admin user's own contact form. $this->drupalLogout(); diff --git a/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php b/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php index 8a9e210..1c69c2e 100644 --- a/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php +++ b/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php @@ -126,6 +126,9 @@ function testSiteWideContact() { $this->assertEqual($config['reply'], $reply); $this->assertNotEqual($id, \Drupal::config('contact.settings')->get('default_category')); $this->assertRaw(t('Category %label has been updated.', array('%label' => $label))); + // Ensure the label is displayed on the contact page for this category. + $this->drupalGet('contact/' . $id); + $this->assertText($label); // Reset the category back to be the default category. \Drupal::config('contact.settings')->set('default_category', $id)->save();