diff options
-rw-r--r-- | modules/blog/blog.test | 2 | ||||
-rw-r--r-- | modules/forum/forum.test | 2 | ||||
-rw-r--r-- | modules/node/node.pages.inc | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/modules/blog/blog.test b/modules/blog/blog.test index 5086e001b..0ce260889 100644 --- a/modules/blog/blog.test +++ b/modules/blog/blog.test @@ -115,7 +115,7 @@ class BlogTestCase extends DrupalWebTestCase { $this->drupalGet('node/' . $node->nid . '/edit'); $this->assertResponse($response); if ($response == 200) { - $this->assertTitle($node->title. ' | Drupal', t('Blog edit node was displayed')); + $this->assertTitle('Edit Blog entry ' . $node->title. ' | Drupal', t('Blog edit node was displayed')); $this->assertText(t('Home ' . $crumb . ' @title', array('@title' => $node->title)), t('Breadcrumbs were displayed')); } diff --git a/modules/forum/forum.test b/modules/forum/forum.test index 95f0ccbfe..426a5dccc 100644 --- a/modules/forum/forum.test +++ b/modules/forum/forum.test @@ -313,7 +313,7 @@ class ForumTestCase extends DrupalWebTestCase { $this->drupalGet('node/' . $node->nid . '/edit'); $this->assertResponse($response); if ($response == 200) { - $this->assertTitle($node->title . ' | Drupal', t('Forum edit node was displayed')); + $this->assertTitle('Edit Forum topic ' . $node->title . ' | Drupal', t('Forum edit node was displayed')); $this->assertText(t('Home ' . $crumb . ' @title', array('@title' => $node->title)), t('Breadcrumbs were displayed')); } diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index cb5a70d84..d8c17fcdb 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -11,7 +11,8 @@ * Menu callback; presents the node editing form, or redirects to delete confirmation. */ function node_page_edit($node) { - drupal_set_title($node->title); + $type_name = node_get_types('name', $node); + drupal_set_title(t('<em>Edit @type</em> @title', array('@type' => $type_name, '@title' => $node->title)), PASS_THROUGH); return drupal_get_form($node->type . '_node_form', $node); } |