diff --git a/core/modules/user/lib/Drupal/user/Tests/UserAccountLinksTests.php b/core/modules/user/lib/Drupal/user/Tests/UserAccountLinksTests.php index 33c91f8..5ef4ba9 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserAccountLinksTests.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserAccountLinksTests.php @@ -10,9 +10,17 @@ namespace Drupal\user\Tests; use Drupal\simpletest\WebTestBase; /** - * Test user-links in secondary menu. + * Tests user links in the secondary menu. */ class UserAccountLinksTests extends WebTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = array('menu'); + public static function getInfo() { return array( 'name' => 'User account links', @@ -21,10 +29,6 @@ class UserAccountLinksTests extends WebTestBase { ); } - function setUp() { - parent::setUp(array('menu')); - } - /** * Tests the secondary menu. */ @@ -89,4 +93,5 @@ class UserAccountLinksTests extends WebTestBase { )); $this->assertEqual(count($link), 0, 'My account link is not in the secondary menu.'); } + }