Commit 6e4b4135 authored by alexpott's avatar alexpott

Issue #2021075 by rszrama: Fixed TermTest.php testing false positive.

parent 0af43e4e
......@@ -349,8 +349,9 @@ function testTermInterface() {
$this->drupalGet('taxonomy/term/' . $term->id() . '/feed');
// Check that the term edit page does not try to interpret additional path
// components as arguments for taxonomy_term_form().
// components as arguments for entity_get_form().
$this->drupalGet('taxonomy/term/' . $term->id() . '/edit/' . $this->randomName());
$this->assertResponse(200, 'The taxonomy term edit menu item ensured appropriate arguments were passed to its page callback.');
// Delete the term.
$this->drupalPost('taxonomy/term/' . $term->id() . '/edit', array(), t('Delete'));
......
......@@ -265,9 +265,7 @@ function taxonomy_menu() {
$items['taxonomy/term/%taxonomy_term/edit'] = array(
'title' => 'Edit',
'page callback' => 'entity_get_form',
// Pass a NULL argument to ensure that additional path components are not
// passed to taxonomy_term_form() as the vocabulary machine name argument.
'page arguments' => array(2),
'page arguments' => array(2, 'default', array()),
'access callback' => 'entity_page_access',
'access arguments' => array(2, 'update'),
'type' => MENU_LOCAL_TASK,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment