2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
// Check that the vote count values didn't get copied from the Dutch poll
// and are set to 0.
$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'])));