commit 2297b0558329124adf60de0d1a8a63e196a2d45b Author: Andy Postnikov Date: Wed Sep 19 06:46:59 2012 +0700 Fix broken test diff --git a/core/modules/contact/lib/Drupal/contact/ContactFormController.php b/core/modules/contact/lib/Drupal/contact/ContactFormController.php index 5003a0e..1d588d7 100644 --- a/core/modules/contact/lib/Drupal/contact/ContactFormController.php +++ b/core/modules/contact/lib/Drupal/contact/ContactFormController.php @@ -96,7 +96,7 @@ class ContactFormController extends EntityFormController { // @todo We should not be calling contact_category_delete_form() from // within the form builder. if ($form_state['triggering_element']['#value'] == t('Delete')) { - // Rebuild the form to confirm vocabulary deletion. + // Rebuild the form to confirm category deletion. $form_state['redirect'] = 'admin/structure/contact/delete/' . $form_state['values']['id']; return NULL; } diff --git a/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php b/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php index dfb9d4b..971c94e 100644 --- a/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php +++ b/core/modules/contact/lib/Drupal/contact/Tests/ContactSitewideTest.php @@ -297,7 +297,7 @@ class ContactSitewideTest extends WebTestBase { function deleteCategories() { $categories = entity_load_multiple('contact_category'); foreach ($categories as $id => $category) { - $this->drupalPost('admin/structure/contact/manage/' . $id . '/delete', array(), t('Delete')); + $this->drupalPost('admin/structure/contact/delete/' . $id, array(), t('Delete')); $this->assertRaw(t('Category %label has been deleted.', array('%label' => $category->label())), t('Category deleted successfully.')); } }