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');
|
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() {
|
protected function setUp() {
|
||||||
parent::setUp();
|
parent::setUp();
|
||||||
|
|
||||||
|
@ -37,8 +44,8 @@ class PathLanguageTest extends PathTestBase {
|
||||||
'translate any entity',
|
'translate any entity',
|
||||||
);
|
);
|
||||||
// Create and login user.
|
// Create and login user.
|
||||||
$this->web_user = $this->drupalCreateUser($permissions);
|
$this->webUser = $this->drupalCreateUser($permissions);
|
||||||
$this->drupalLogin($this->web_user);
|
$this->drupalLogin($this->webUser);
|
||||||
|
|
||||||
// Enable French language.
|
// Enable French language.
|
||||||
$edit = array();
|
$edit = array();
|
||||||
|
@ -131,7 +138,7 @@ class PathLanguageTest extends PathTestBase {
|
||||||
|
|
||||||
// Change user language preference.
|
// Change user language preference.
|
||||||
$edit = array('preferred_langcode' => 'fr');
|
$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
|
// Check that the English alias works. In this situation French is the
|
||||||
// current UI and content language, while URL language is English (since we
|
// current UI and content language, while URL language is English (since we
|
||||||
|
|
Loading…
Reference in New Issue