The documentation "Test the user login block." for testSecondaryMenu() below is an unfortunate copy paste from another function in user.test.
/**
* Test user-links in secondary menu.
*/
class UserAccountLinksUnitTests extends DrupalWebTestCase {
public static function getInfo() {
return array(
'name' => 'User account links',
'description' => 'Test user-account links.',
'group' => 'User'
);
}
/**
* Test the user login block.
*/
function testSecondaryMenu() {
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | fix-inaccurate-test-doc-1509796-4.patch | 402 bytes | markdorison |
| #1 | fix-inaccurate-test-doc-1509796-1.patch | 401 bytes | markdorison |
Comments
Comment #1
markdorisonUpdated comment to read:
Comment #2
scor commentedComment #3
jhodgdonThat line does not conform to our docs standards (verb tense):
http://drupal.org/node/1354#functions
Also, just as a note, the docs for the User module (including the tests) as a whole are being worked on:
#1326666: Clean up API docs for user module
The latest patch there did not address the user.test file much though, so we can go ahead and get this in once it is correct. Thanks!
Comment #4
markdorisonCorrected verb tense.
Comment #5
jmarkel commentedComment #6
jhodgdonThanks! Committed to 8.x/7.x.