diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-05 23:53:39 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-08-05 23:53:39 +0000 |
commit | 25171a17f626695ecf984cc44b60d3eae1310b4c (patch) | |
tree | 3268ef89294cbb96d0875d665012c4ff16d8c68a /modules/blog | |
parent | cacd044a6398df92de68c5aea31987ac0fff507a (diff) | |
download | brdo-25171a17f626695ecf984cc44b60d3eae1310b4c.tar.gz brdo-25171a17f626695ecf984cc44b60d3eae1310b4c.tar.bz2 |
Reverting #500866. Needs more discussion.
Diffstat (limited to 'modules/blog')
-rw-r--r-- | modules/blog/blog.test | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/modules/blog/blog.test b/modules/blog/blog.test index be0e89fdc..500a9d74f 100644 --- a/modules/blog/blog.test +++ b/modules/blog/blog.test @@ -38,8 +38,8 @@ class BlogTestCase extends DrupalWebTestCase { $this->drupalGet('blog/' . $this->big_user->uid); $this->assertResponse(200); - $this->assertTitle(t("@name's blog", array('@name' => format_username($this->big_user))) . ' | Drupal', 'Blog title was displayed'); - $this->assertText(t('You are not allowed to post a new blog entry.'), 'No new entries can be posted without the right permission'); + $this->assertTitle(t("@name's blog", array('@name' => format_username($this->big_user))) . ' | Drupal', t('Blog title was displayed')); + $this->assertText(t('You are not allowed to post a new blog entry.'), t('No new entries can be posted without the right permission')); } /** @@ -50,8 +50,8 @@ class BlogTestCase extends DrupalWebTestCase { $this->drupalGet('blog/' . $this->own_user->uid); $this->assertResponse(200); - $this->assertTitle(t("@name's blog", array('@name' => format_username($this->own_user))) . ' | Drupal', 'Blog title was displayed'); - $this->assertText(t('@author has not created any blog entries.', array('@author' => format_username($this->own_user))), 'Users blog displayed with no entries'); + $this->assertTitle(t("@name's blog", array('@name' => format_username($this->own_user))) . ' | Drupal', t('Blog title was displayed')); + $this->assertText(t('@author has not created any blog entries.', array('@author' => format_username($this->own_user))), t('Users blog displayed with no entries')); } /** @@ -69,7 +69,7 @@ class BlogTestCase extends DrupalWebTestCase { $edit = array(); $edit['blog_block_count'] = 5; $this->drupalPost('admin/structure/block/manage/blog/recent/configure', $edit, t('Save block')); - $this->assertEqual(variable_get('blog_block_count', 10), 5, 'Number of recent blog posts changed.'); + $this->assertEqual(variable_get('blog_block_count', 10), 5, t('Number of recent blog posts changed.')); // Do basic tests for each user. $this->doBasicTests($this->any_user, TRUE); @@ -128,31 +128,31 @@ class BlogTestCase extends DrupalWebTestCase { $this->drupalGet('admin/help/blog'); $this->assertResponse($response2); if ($response2 == 200) { - $this->assertTitle(t('Blog | Drupal'), 'Blog help node was displayed'); - $this->assertText(t('Blog'), 'Blog help node was displayed'); + $this->assertTitle(t('Blog | Drupal'), t('Blog help node was displayed')); + $this->assertText(t('Blog'), t('Blog help node was displayed')); } // Verify the blog block was displayed. $this->drupalGet(''); $this->assertResponse(200); - $this->assertText(t('Recent blog posts'), 'Blog block was displayed'); + $this->assertText(t('Recent blog posts'), t('Blog block was displayed')); // View blog node. $this->drupalGet('node/' . $node->nid); $this->assertResponse(200); - $this->assertTitle($node->title . ' | Drupal', 'Blog node was displayed'); + $this->assertTitle($node->title . ' | Drupal', t('Blog node was displayed')); $breadcrumb = array( l(t('Home'), NULL), l(t('Blogs'), 'blog'), l(t("!name's blog", array('!name' => format_username($node_user))), 'blog/' . $node_user->uid), ); - $this->assertRaw(theme('breadcrumb', array('breadcrumb' => $breadcrumb)), 'Breadcrumbs were displayed'); + $this->assertRaw(theme('breadcrumb', array('breadcrumb' => $breadcrumb)), t('Breadcrumbs were displayed')); // View blog edit node. $this->drupalGet('node/' . $node->nid . '/edit'); $this->assertResponse($response); if ($response == 200) { - $this->assertTitle('Edit Blog entry ' . $node->title . ' | Drupal', 'Blog edit node was displayed'); + $this->assertTitle('Edit Blog entry ' . $node->title . ' | Drupal', t('Blog edit node was displayed')); } if ($response == 200) { @@ -162,12 +162,12 @@ class BlogTestCase extends DrupalWebTestCase { $edit["title"] = 'node/' . $node->nid; $edit["body[$langcode][0][value]"] = $this->randomName(256); $this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); - $this->assertRaw(t('Blog entry %title has been updated.', array('%title' => $edit["title"])), 'Blog node was edited'); + $this->assertRaw(t('Blog entry %title has been updated.', array('%title' => $edit["title"])), t('Blog node was edited')); // Delete blog node. $this->drupalPost('node/' . $node->nid . '/delete', array(), t('Delete')); $this->assertResponse($response); - $this->assertRaw(t('Blog entry %title has been deleted.', array('%title' => $edit["title"])), 'Blog node was deleted'); + $this->assertRaw(t('Blog entry %title has been deleted.', array('%title' => $edit["title"])), t('Blog node was deleted')); } } @@ -181,29 +181,29 @@ class BlogTestCase extends DrupalWebTestCase { // Confirm blog entries link exists on the user page. $this->drupalGet('user/' . $user->uid); $this->assertResponse(200); - $this->assertText(t('View recent blog entries'), 'View recent blog entries link was displayed'); + $this->assertText(t('View recent blog entries'), t('View recent blog entries link was displayed')); // Confirm the recent blog entries link goes to the user's blog page. $this->clickLink('View recent blog entries'); - $this->assertTitle(t("@name's blog | Drupal", array('@name' => format_username($user))), 'View recent blog entries link target was correct'); + $this->assertTitle(t("@name's blog | Drupal", array('@name' => format_username($user))), t('View recent blog entries link target was correct')); // Confirm a blog page was displayed. $this->drupalGet('blog'); $this->assertResponse(200); - $this->assertTitle('Blogs | Drupal', 'Blog page was displayed'); - $this->assertText(t('Home'), 'Breadcrumbs were displayed'); + $this->assertTitle('Blogs | Drupal', t('Blog page was displayed')); + $this->assertText(t('Home'), t('Breadcrumbs were displayed')); $this->assertLink(t('Create new blog entry')); // Confirm a blog page was displayed per user. $this->drupalGet('blog/' . $user->uid); - $this->assertTitle(t("@name's blog | Drupal", array('@name' => format_username($user))), 'User blog node was displayed'); + $this->assertTitle(t("@name's blog | Drupal", array('@name' => format_username($user))), t('User blog node was displayed')); // Confirm a blog feed was displayed. $this->drupalGet('blog/feed'); - $this->assertTitle(t('Drupal blogs'), 'Blog feed was displayed'); + $this->assertTitle(t('Drupal blogs'), t('Blog feed was displayed')); // Confirm a blog feed was displayed per user. $this->drupalGet('blog/' . $user->uid . '/feed'); - $this->assertTitle(t("@name's blog", array('@name' => format_username($user))), 'User blog feed was displayed'); + $this->assertTitle(t("@name's blog", array('@name' => format_username($user))), t('User blog feed was displayed')); } } |