function DateRepeatFormTest::verifyDateForm in Date 8
1 call to DateRepeatFormTest::verifyDateForm()
- DateRepeatFormTest::testDateRepeatForm in date_repeat/
lib/ Drupal/ date_repeat/ Tests/ DateRepeatFormTest.php
File
- date_repeat/
lib/ Drupal/ date_repeat/ Tests/ DateRepeatFormTest.php, line 448 - Test Date Repeat form.
Class
Namespace
Drupal\date_repeat\TestsCode
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.'));
}