From e5587093aed05cbdf8b1dbe73d8129969b96665e Mon Sep 17 00:00:00 2001 From: webchick Date: Tue, 6 Jan 2015 11:27:23 -0800 Subject: [PATCH] Issue #2396707 by hussainweb: Clean-up path module test members - ensure property definition and use of camelCase naming convention --- core/modules/path/src/Tests/PathLanguageTest.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/core/modules/path/src/Tests/PathLanguageTest.php b/core/modules/path/src/Tests/PathLanguageTest.php index e5f70652ea06..01c7f705ace4 100644 --- a/core/modules/path/src/Tests/PathLanguageTest.php +++ b/core/modules/path/src/Tests/PathLanguageTest.php @@ -21,6 +21,13 @@ class PathLanguageTest extends PathTestBase { */ public static $modules = array('path', 'locale', 'content_translation'); + /** + * An user with permissions to administer content types. + * + * @var \Drupal\user\UserInterface + */ + protected $webUser; + protected function setUp() { parent::setUp(); @@ -37,8 +44,8 @@ class PathLanguageTest extends PathTestBase { 'translate any entity', ); // Create and login user. - $this->web_user = $this->drupalCreateUser($permissions); - $this->drupalLogin($this->web_user); + $this->webUser = $this->drupalCreateUser($permissions); + $this->drupalLogin($this->webUser); // Enable French language. $edit = array(); @@ -131,7 +138,7 @@ class PathLanguageTest extends PathTestBase { // Change user language preference. $edit = array('preferred_langcode' => 'fr'); - $this->drupalPostForm("user/" . $this->web_user->id() . "/edit", $edit, t('Save')); + $this->drupalPostForm("user/" . $this->webUser->id() . "/edit", $edit, t('Save')); // Check that the English alias works. In this situation French is the // current UI and content language, while URL language is English (since we