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
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -21,6 +21,13 @@ class PathLanguageTest extends PathTestBase { ...@@ -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 @@ protected function setUp() { ...@@ -37,8 +44,8 @@ protected function setUp() {
'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 @@ function testAliasTranslation() { ...@@ -131,7 +138,7 @@ function testAliasTranslation() {
// 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
......
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