Révision b0dc3a2e
Ajouté par Julien Enselme il y a plus de 7 ans
drupal7/modules/menu/menu.test | ||
---|---|---|
648 | 648 |
); |
649 | 649 |
$this->drupalPost('admin/structure/types/manage/page', $edit, t('Save content type')); |
650 | 650 |
|
651 |
// Create a node. |
|
651 |
// Verify that the menu link title on the node add form has the correct |
|
652 |
// maxlength. |
|
653 |
$this->drupalGet('node/add/page'); |
|
654 |
$this->assertPattern('/<input .* id="edit-menu-link-title" .* maxlength="255" .* \/>/', 'Menu link title field has correct maxlength in node add form.'); |
|
655 |
|
|
656 |
// Create a node with menu link disabled. |
|
652 | 657 |
$node_title = $this->randomName(); |
653 | 658 |
$language = LANGUAGE_NONE; |
654 | 659 |
$edit = array( |
... | ... | |
684 | 689 |
$this->drupalGet('node/' . $node->nid . '/edit'); |
685 | 690 |
$this->assertOptionSelected('edit-menu-weight', 17, 'Menu weight correct in edit form'); |
686 | 691 |
|
692 |
// Verify that the menu link title on the node edit form has the correct |
|
693 |
// maxlength. |
|
694 |
$this->assertPattern('/<input .* id="edit-menu-link-title" .* maxlength="255" .* \/>/', 'Menu link title field has correct maxlength in node edit form.'); |
|
695 |
|
|
687 | 696 |
// Edit the node and remove the menu link. |
688 | 697 |
$edit = array( |
689 | 698 |
'menu[enabled]' => FALSE, |
Formats disponibles : Unified diff
Update to Drupal 7.52