summaryrefslogtreecommitdiff
path: root/modules/node
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2012-09-30 20:34:59 -0400
committerwebchick <webchick@24967.no-reply.drupal.org>2012-09-30 20:34:59 -0400
commitc3cba0532ba45692af5378d1b89e745ea0df3701 (patch)
treec9b641cb6ce1f3c765e512e973f640132d7ca64a /modules/node
parent83d850f8e4ee4eb3c76fb9b4cd7d07f6cb558a9c (diff)
downloadbrdo-c3cba0532ba45692af5378d1b89e745ea0df3701.tar.gz
brdo-c3cba0532ba45692af5378d1b89e745ea0df3701.tar.bz2
Issue #1786124 by xjm, dcam: Clean up node access pager test.
Diffstat (limited to 'modules/node')
-rw-r--r--modules/node/node.test20
1 files changed, 10 insertions, 10 deletions
diff --git a/modules/node/node.test b/modules/node/node.test
index dc21daf6b..253e7da84 100644
--- a/modules/node/node.test
+++ b/modules/node/node.test
@@ -2486,24 +2486,24 @@ class NodeAccessPagerTestCase extends DrupalWebTestCase {
// View the node page. With the default 50 comments per page there should
// be two pages (0, 1) but no third (2) page.
$this->drupalGet('node/' . $node->nid);
- $this->assertText($node->title, t('Node title found.'));
- $this->assertText(t('Comments'), t('Has a comments section.'));
- $this->assertRaw('page=1', t('Secound page exists.'));
- $this->assertNoRaw('page=2', t('No third page exists.'));
+ $this->assertText($node->title);
+ $this->assertText(t('Comments'));
+ $this->assertRaw('page=1');
+ $this->assertNoRaw('page=2');
}
/**
* Tests the forum node pager for nodes with multiple grants per realm.
*/
public function testForumPager() {
- // Lookup the forums vocabulary vid.
+ // Look up the forums vocabulary ID.
$vid = variable_get('forum_nav_vocabulary', 0);
- $this->assertTrue($vid, t('Forum navigation vocabulary found.'));
+ $this->assertTrue($vid, 'Forum navigation vocabulary ID is set.');
- // Lookup the general discussion term.
+ // Look up the general discussion term.
$tree = taxonomy_get_tree($vid, 0, 1);
$tid = reset($tree)->tid;
- $this->assertTrue($tid, t('General discussion term found.'));
+ $this->assertTrue($tid, 'General discussion term is found in the forum vocabulary.');
// Create 30 nodes.
for ($i = 0; $i < 30; $i++) {
@@ -2522,8 +2522,8 @@ class NodeAccessPagerTestCase extends DrupalWebTestCase {
// page there should be two pages for 30 nodes, no more.
$this->drupalLogin($this->web_user);
$this->drupalGet('forum/' . $tid);
- $this->assertRaw('page=1', t('Secound page exists.'));
- $this->assertNoRaw('page=2', t('No third page exists.'));
+ $this->assertRaw('page=1');
+ $this->assertNoRaw('page=2');
}
}