Commit 75f9fed6 authored by webchick's avatar webchick

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 {
*/
public static $modules = array('language', 'language_test');
/**
* An user with permissions to administer languages.
*
* @var \Drupal\user\UserInterface
*/
protected $webUser;
protected function setUp() {
parent::setUp();
// Create and login user.
$this->web_user = $this->drupalCreateUser(array('administer languages', 'access administration pages'));
$this->drupalLogin($this->web_user);
$this->webUser = $this->drupalCreateUser(array('administer languages', 'access administration pages'));
$this->drupalLogin($this->webUser);
// Install French language.
$edit = array();
......@@ -58,7 +65,7 @@ function testUrlRewritingEdgeCases() {
// Check that URL rewriting is not applied to subrequests.
$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