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() {

Comments

markdorison’s picture

Status: Active » Needs review
StatusFileSize
new401 bytes

Updated comment to read:

Test the secondary menu.

scor’s picture

Status: Needs review » Reviewed & tested by the community
jhodgdon’s picture

Status: Reviewed & tested by the community » Needs work

That 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!

markdorison’s picture

Status: Needs work » Needs review
StatusFileSize
new402 bytes

Corrected verb tense.

jmarkel’s picture

Status: Needs review » Reviewed & tested by the community
jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Thanks! Committed to 8.x/7.x.

Automatically closed -- issue fixed for 2 weeks with no activity.