Skip to content
Snippets Groups Projects
Commit e5587093 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2396707 by hussainweb: Clean-up path module test members - ensure...

Issue #2396707 by hussainweb: Clean-up path module test members - ensure property definition and use of camelCase naming convention
parent 8d3a5f7d
No related branches found
No related tags found
No related merge requests found
......@@ -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 @@ protected function setUp() {
'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 @@ function testAliasTranslation() {
// 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment