$this->assertRaw(t('The content type %type has been updated.',array('%type'=>'Poll')),t('Poll content type has been updated.'));
$this->assertRaw(t('The content type %type has been updated.',array('%type'=>'Poll')),'Poll content type has been updated.');
// Edit poll.
$this->drupalGet("node/$poll_nid/edit");
...
...
@@ -77,7 +77,7 @@ function testPollTranslate() {
$this->assertFieldByName('choice[chid:1][chvotes]','0',('Found choice with vote count 0'));
$this->assertFieldByName('choice[chid:2][chvotes]','0',('Found choice with vote count 0'));
// Check that the choice names got copied from the Dutch poll.
$this->assertFieldByName('choice[chid:1][chtext]',$dutch_poll->choice[1]['chtext'],t('Found choice with text @text',array('@text'=>$dutch_poll->choice[1]['chtext'])));
$this->assertFieldByName('choice[chid:2][chtext]',$dutch_poll->choice[2]['chtext'],t('Found choice with text @text',array('@text'=>$dutch_poll->choice[2]['chtext'])));
$this->assertFieldByName('choice[chid:1][chtext]',$dutch_poll->choice[1]['chtext'],format_string('Found choice with text @text',array('@text'=>$dutch_poll->choice[1]['chtext'])));
$this->assertFieldByName('choice[chid:2][chtext]',$dutch_poll->choice[2]['chtext'],format_string('Found choice with text @text',array('@text'=>$dutch_poll->choice[2]['chtext'])));
$elements=$this->xpath('//input[@value="Cancel your vote"]');
$this->assertTrue(isset($elements[0]),t("'Cancel your vote' button appears."));
$this->assertTrue(isset($elements[0]),"'Cancel your vote' button appears.");
$this->drupalGet("node/$poll_nid/votes");
$this->assertText(t('This table lists all the recorded votes for this poll. If anonymous users are allowed to vote, they will be identified by the IP address of the computer they used when they voted.'),'Vote table text.');
...
...
@@ -75,6 +75,6 @@ function testPollVote() {
$this->assertText('Your vote was recorded.','Your vote was recorded.');