Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
6e4b4135
Commit
6e4b4135
authored
Jun 29, 2013
by
alexpott
Browse files
Issue
#2021075
by rszrama: Fixed TermTest.php testing false positive.
parent
0af43e4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php
View file @
6e4b4135
...
...
@@ -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'
));
...
...
core/modules/taxonomy/taxonomy.module
View file @
6e4b4135
...
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment