Commit e6d24920 authored by webchick's avatar webchick

Issue #2396695 by hussainweb: Clean-up link module test members - ensure...

Issue #2396695 by hussainweb: Clean-up link module test members - ensure property definition and use of camelCase naming convention
parent 9df9e020
......@@ -25,7 +25,7 @@ class LinkFieldTest extends WebTestBase {
*
* @var array
*/
public static $modules = array('entity_test', 'link');
public static $modules = ['entity_test', 'link'];
/**
* A field to use in this test class.
......@@ -41,22 +41,14 @@ class LinkFieldTest extends WebTestBase {
*/
protected $field;
/**
* A user with permission to view and manage test entities.
*
* @var object
*/
protected $web_user;
protected function setUp() {
parent::setUp();
$this->web_user = $this->drupalCreateUser(array(
$this->drupalLogin($this->drupalCreateUser([
'view test entity',
'administer entity_test content',
'link to any page',
));
$this->drupalLogin($this->web_user);
]));
}
/**
......
......@@ -25,13 +25,12 @@ class LinkFieldUITest extends WebTestBase {
*
* @var array
*/
public static $modules = array('node', 'link', 'field_ui');
public static $modules = ['node', 'link', 'field_ui'];
protected function setUp() {
parent::setUp();
$this->web_user = $this->drupalCreateUser(array('administer content types', 'administer node fields', 'administer node display'));
$this->drupalLogin($this->web_user);
$this->drupalLogin($this->drupalCreateUser(['administer content types', 'administer node fields', 'administer node display']));
}
/**
......
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