You are here

public function DateRepeatFormTestCase::verifyDateForm in Date 7.3

Same name and namespace in other branches
  1. 7.2 date_repeat/tests/date_repeat_form.test \DateRepeatFormTestCase::verifyDateForm()

Verify date forms.

1 call to DateRepeatFormTestCase::verifyDateForm()
DateRepeatFormTestCase::testDateRepeatForm in date_repeat/tests/date_repeat_form.test
Test the Date Repeat form.

File

date_repeat/tests/date_repeat_form.test, line 485
Test Date Repeat form.

Class

DateRepeatFormTestCase
Test Date Repeat form.

Code

public function verifyDateForm($edit) {
  $title = $edit['title'];
  $node = $this
    ->drupalGetNodeByTitle($title);
  $this
    ->drupalGet("node/{$node->nid}/edit");
  foreach ($edit as $field => $value) {
    $this
      ->assertFieldByName($field, $value);
  }
  $this
    ->drupalPost("node/{$node->nid}/delete", NULL, t('Delete'));
  $this
    ->assertRaw(t('Date %title has been deleted.', array(
    '%title' => $title,
  )), t('Deleted Date content.'));
}