Issue #2396707 by hussainweb: Clean-up path module test members - ensure property definition and use of camelCase naming convention
parent
8d3a5f7d69
commit
e5587093ae
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue