diff --git a/core/modules/user/lib/Drupal/user/Tests/UserAdminLanguageTest.php b/core/modules/user/lib/Drupal/user/Tests/UserAdminLanguageTest.php index 8591069..1e664d2 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserAdminLanguageTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserAdminLanguageTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests users' ability to change administration pages language for theirself. + * Tests users' ability to change their own administration language. */ class UserAdminLanguageTest extends WebTestBase { protected $admin_user; @@ -31,7 +31,7 @@ public static function getInfo() { ); } - protected function setUp() { + public function setUp() { parent::setUp(); // User to add and remove language. $this->admin_user = $this->drupalCreateUser(array('administer languages', 'access administration pages')); @@ -42,7 +42,7 @@ protected function setUp() { /** * Tests that admin language is not configurable in single language sites. */ - function testUserAdminLanguageConfigurationNotAvailableWithOnlyOneLanguage() { + function testUserAdminLanguageConfUnavailableWithOnlyOneLanguage() { $this->drupalLogin($this->admin_user); $this->setLanguageNegotiation(); $path = 'user/' . $this->admin_user->id() . '/edit'; @@ -52,10 +52,9 @@ function testUserAdminLanguageConfigurationNotAvailableWithOnlyOneLanguage() { } /** - * Tests that admin language is configurable only if admin language negotiation - * is enabled. + * Tests that admin language negotiation is configurable only if enabled. */ - function testUserAdminLanguageConfigurationNotAvailableWithoutAdminLanguageNegotiation() { + function testUserAdminLanguageConfUnAvailableWhenDisabled() { $this->drupalLogin($this->admin_user); $path = 'user/' . $this->admin_user->id() . '/edit'; $this->drupalGet($path); @@ -66,7 +65,7 @@ function testUserAdminLanguageConfigurationNotAvailableWithoutAdminLanguageNegot /** * Tests that the admin language is configurable only for admins. */ - function testUserAdminLanguageConfigurationAvailableIfAdminLanguageNegotiationIsEnabled() { + function testUserAdminLanguageConfAvailableWhenEnabled() { $this->drupalLogin($this->admin_user); $this->addCustomLanguage(); $this->setLanguageNegotiation(); @@ -97,7 +96,7 @@ function setLanguageNegotiation() { } /** - * Helper meethod for adding a custom language. + * Helper method for adding a custom language. */ function addCustomLanguage() { $langcode = 'xx';