Révision 4444412d
Ajouté par Julien Enselme il y a presque 10 ans
drupal7/modules/taxonomy/taxonomy.test | ||
---|---|---|
690 | 690 |
$term_objects[$key] = reset($term_objects[$key]); |
691 | 691 |
} |
692 | 692 |
|
693 |
// Test editing the node. |
|
694 |
$node = $this->drupalGetNodeByTitle($edit["title"]); |
|
695 |
$this->drupalPost('node/' . $node->nid . '/edit', $edit, t('Save')); |
|
696 |
foreach ($terms as $term) { |
|
697 |
$this->assertText($term, 'The term was retained after edit and still appears on the node page.'); |
|
698 |
} |
|
699 |
|
|
693 | 700 |
// Delete term 1. |
694 | 701 |
$this->drupalPost('taxonomy/term/' . $term_objects['term1']->tid . '/edit', array(), t('Delete')); |
695 | 702 |
$this->drupalPost(NULL, NULL, t('Delete')); |
696 | 703 |
$term_names = array($term_objects['term2']->name, $term_objects['term3']->name); |
697 | 704 |
|
698 |
// Get the node. |
|
699 |
$node = $this->drupalGetNodeByTitle($edit["title"]); |
|
705 |
// Get the node and verify that the terms that should be there still are. |
|
700 | 706 |
$this->drupalGet('node/' . $node->nid); |
701 |
|
|
702 | 707 |
foreach ($term_names as $term_name) { |
703 | 708 |
$this->assertText($term_name, format_string('The term %name appears on the node page after one term %deleted was deleted', array('%name' => $term_name, '%deleted' => $term_objects['term1']->name))); |
704 | 709 |
} |
Formats disponibles : Unified diff
Update drupal 7.27 -> 7.28