Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
286
Merge Requests
286
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
6e4b4135
Commit
6e4b4135
authored
Jun 29, 2013
by
alexpott
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2021075
by rszrama: Fixed TermTest.php testing false positive.
parent
0af43e4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php
core/modules/taxonomy/lib/Drupal/taxonomy/Tests/TermTest.php
+2
-1
core/modules/taxonomy/taxonomy.module
core/modules/taxonomy/taxonomy.module
+1
-3
No files found.
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