Issue #1338152 by ditcheva, headly, oriol_e9g, tregeagle, watbe, kathyh: Correct grammar for test messages in tracker.test.

8.0.x
Nathaniel Catchpole 2014-02-13 11:48:31 +00:00
parent f559c64054
commit a8d433f426
1 changed files with 8 additions and 8 deletions

View File

@ -71,14 +71,14 @@ class TrackerTest extends WebTestBase {
)); ));
$this->drupalGet('tracker'); $this->drupalGet('tracker');
$this->assertNoText($unpublished->label(), 'Unpublished node do not show up in the tracker listing.'); $this->assertNoText($unpublished->label(), 'Unpublished node does not show up in the tracker listing.');
$this->assertText($published->label(), 'Published node show up in the tracker listing.'); $this->assertText($published->label(), 'Published node shows up in the tracker listing.');
$this->assertLink(t('My recent content'), 0, 'User tab shows up on the global tracker page.'); $this->assertLink(t('My recent content'), 0, 'User tab shows up on the global tracker page.');
// Delete a node and ensure it no longer appears on the tracker. // Delete a node and ensure it no longer appears on the tracker.
$published->delete(); $published->delete();
$this->drupalGet('tracker'); $this->drupalGet('tracker');
$this->assertNoText($published->label(), 'Deleted node do not show up in the tracker listing.'); $this->assertNoText($published->label(), 'Deleted node does not show up in the tracker listing.');
} }
/** /**
@ -114,9 +114,9 @@ class TrackerTest extends WebTestBase {
$this->drupalPostForm('comment/reply/node/' . $other_published_my_comment->id() . '/comment', $comment, t('Save')); $this->drupalPostForm('comment/reply/node/' . $other_published_my_comment->id() . '/comment', $comment, t('Save'));
$this->drupalGet('user/' . $this->user->id() . '/track'); $this->drupalGet('user/' . $this->user->id() . '/track');
$this->assertNoText($unpublished->label(), "Unpublished nodes do not show up in the users's tracker listing."); $this->assertNoText($unpublished->label(), "Unpublished nodes do not show up in the user's tracker listing.");
$this->assertText($my_published->label(), "Published nodes show up in the user's tracker listing."); $this->assertText($my_published->label(), "Published nodes show up in the user's tracker listing.");
$this->assertNoText($other_published_no_comment->label(), "Other user's nodes do not show up in the user's tracker listing."); $this->assertNoText($other_published_no_comment->label(), "Another user's nodes do not show up in the user's tracker listing.");
$this->assertText($other_published_my_comment->label(), "Nodes that the user has commented on appear in the user's tracker listing."); $this->assertText($other_published_my_comment->label(), "Nodes that the user has commented on appear in the user's tracker listing.");
// Verify that title and tab title have been set correctly. // Verify that title and tab title have been set correctly.
$this->assertText('Track', 'The user tracker tab has the name "Track".'); $this->assertText('Track', 'The user tracker tab has the name "Track".');
@ -263,7 +263,7 @@ class TrackerTest extends WebTestBase {
foreach ($nodes as $i => $node) { foreach ($nodes as $i => $node) {
$this->assertText($node->label(), format_string('Node @i is displayed on the tracker listing pages.', array('@i' => $i))); $this->assertText($node->label(), format_string('Node @i is displayed on the tracker listing pages.', array('@i' => $i)));
} }
$this->assertText('1 new', 'New comment is counted on the tracker listing pages.'); $this->assertText('1 new', 'One new comment is counted on the tracker listing pages.');
$this->assertText('updated', 'Node is listed as updated'); $this->assertText('updated', 'Node is listed as updated');
// Fetch the site-wide tracker. // Fetch the site-wide tracker.
@ -290,7 +290,7 @@ class TrackerTest extends WebTestBase {
// Assert that the node is displayed. // Assert that the node is displayed.
$this->drupalGet('tracker'); $this->drupalGet('tracker');
$this->assertText($node->label(), 'Node is displayed on the tracker listing pages.'); $this->assertText($node->label(), 'A node is displayed on the tracker listing pages.');
// Unpublish the node and ensure that it's no longer displayed. // Unpublish the node and ensure that it's no longer displayed.
$edit = array( $edit = array(
@ -300,6 +300,6 @@ class TrackerTest extends WebTestBase {
$this->drupalPostForm('admin/content', $edit, t('Apply')); $this->drupalPostForm('admin/content', $edit, t('Apply'));
$this->drupalGet('tracker'); $this->drupalGet('tracker');
$this->assertText(t('No content available.'), 'Node is displayed on the tracker listing pages.'); $this->assertText(t('No content available.'), 'A node is displayed on the tracker listing pages.');
} }
} }