This function needs a test: http://api.drupal.org/api/function/menu_get_names/7
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | menu_test_0.patch | 2.52 KB | franskuipers |
This function needs a test: http://api.drupal.org/api/function/menu_get_names/7
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | menu_test_0.patch | 2.52 KB | franskuipers |
Comments
Comment #1
Tiburón commentedCases:
A)
db has no menu_links
reset = false
names = null
check if names is empty
B)
db has no menu_links
reset = true
names = null
check if names is empty
C)
db has a menu_link
reset = false
names = null
check if names is not empty (as in the menu_link is present)
D)
db has a menu_link
reset = true
names = null
check if names is not empty (as in the menu_link is present)
E)
db has a menu_link
reset = false
names = null
check if names is not empty (as in the menu_link is present)
add a menu_link
reset = false
names = the old set of menu_link names
check if names is not empty (as in the old menu_link is present but not the new one)
F)
db has a menu_link
reset = false
names = null
check if names is not empty (as in the menu_link is present)
add a menu_link
reset = true
names = the old set of menu_link names
check if names is not empty (as in the old menu_link is present including the new one)
Franskuipers & Christian Larsen
Comment #2
Tiburón commentedG)
db has a menu_link
reset = false
names = null
check if names is not empty (as in the menu_link is present)
empty menu_link
reset = false
names = the old set of menu_link name
check if names is not empty (as in the old menu_link is present)
H)
db has a menu_link
reset = false
names = null
check if names is not empty (as in the menu_link is present)
empty menu_link
reset = true
names = the old set of menu_link name
check if names is empty
Franskuipers & Christian Larsen
Comment #3
franskuipers commentedMy first test and contribution to core. Thanks for the Testing party in Szeged :-)
Some questions:
Comment #4
franskuipers commentedChanged status
Comment #5
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #6
franskuipers commentedDuplicate: http://drupal.org/node/473240
Test is included in the patch on that issue.