Commit 75f9fed6 authored by webchick's avatar webchick
Browse files

Issue #2396691 by hussainweb: Clean-up language module test members - ensure...

Issue #2396691 by hussainweb: Clean-up language module test members - ensure property definition and use of camelCase naming convention
parent b45af923
...@@ -27,12 +27,19 @@ class LanguageUrlRewritingTest extends WebTestBase { ...@@ -27,12 +27,19 @@ class LanguageUrlRewritingTest extends WebTestBase {
*/ */
public static $modules = array('language', 'language_test'); public static $modules = array('language', 'language_test');
/**
* An user with permissions to administer languages.
*
* @var \Drupal\user\UserInterface
*/
protected $webUser;
protected function setUp() { protected function setUp() {
parent::setUp(); parent::setUp();
// Create and login user. // Create and login user.
$this->web_user = $this->drupalCreateUser(array('administer languages', 'access administration pages')); $this->webUser = $this->drupalCreateUser(array('administer languages', 'access administration pages'));
$this->drupalLogin($this->web_user); $this->drupalLogin($this->webUser);
// Install French language. // Install French language.
$edit = array(); $edit = array();
...@@ -58,7 +65,7 @@ function testUrlRewritingEdgeCases() { ...@@ -58,7 +65,7 @@ function testUrlRewritingEdgeCases() {
// Check that URL rewriting is not applied to subrequests. // Check that URL rewriting is not applied to subrequests.
$this->drupalGet('language_test/subrequest'); $this->drupalGet('language_test/subrequest');
$this->assertText($this->web_user->getUsername(), 'Page correctly retrieved'); $this->assertText($this->webUser->getUsername(), 'Page correctly retrieved');
} }
/** /**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment