diff --git a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php index c8b1c97..cb8b723 100644 --- a/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php +++ b/core/modules/field/src/Tests/Boolean/BooleanFieldTest.php @@ -41,18 +41,25 @@ class BooleanFieldTest extends WebTestBase { protected $field; /** + * A user with permission to view and manage entities and content types. + * + * @var \Drupal\user\UserInterface + */ + protected $webUser; + + /** * {@inheritdoc} */ protected function setUp() { parent::setUp(); - $this->web_user = $this->drupalCreateUser(array( + $this->webUser = $this->drupalCreateUser(array( 'view test entity', 'administer entity_test content', 'administer entity_test form display', 'administer entity_test fields', )); - $this->drupalLogin($this->web_user); + $this->drupalLogin($this->webUser); } /** diff --git a/core/modules/field/src/Tests/Email/EmailFieldTest.php b/core/modules/field/src/Tests/Email/EmailFieldTest.php index 2ce3c46..4598ad8 100644 --- a/core/modules/field/src/Tests/Email/EmailFieldTest.php +++ b/core/modules/field/src/Tests/Email/EmailFieldTest.php @@ -38,15 +38,22 @@ class EmailFieldTest extends WebTestBase { */ protected $field; + /** + * A user with permission to view and manage entities and content types. + * + * @var \Drupal\user\UserInterface + */ + protected $webUser; + protected function setUp() { parent::setUp(); - $this->web_user = $this->drupalCreateUser(array( + $this->webUser= $this->drupalCreateUser(array( 'view test entity', 'administer entity_test content', 'administer content types', )); - $this->drupalLogin($this->web_user); + $this->drupalLogin($this->webUser); } /** diff --git a/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php b/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php index d10b146..eaf74f8 100644 --- a/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php +++ b/core/modules/field/src/Tests/FieldImportDeleteUninstallUiTest.php @@ -25,11 +25,18 @@ class FieldImportDeleteUninstallUiTest extends FieldTestBase { */ public static $modules = array('entity_test', 'telephone', 'config', 'filter', 'text'); + /** + * A user with permission to synchronize configuration. + * + * @var \Drupal\user\UserInterface + */ + protected $webUser; + protected function setUp() { parent::setUp(); - $this->web_user = $this->drupalCreateUser(array('synchronize configuration')); - $this->drupalLogin($this->web_user); + $this->webUser = $this->drupalCreateUser(array('synchronize configuration')); + $this->drupalLogin($this->webUser); } /** diff --git a/core/modules/field/src/Tests/reEnableModuleFieldTest.php b/core/modules/field/src/Tests/reEnableModuleFieldTest.php index 2b8f4c1..fff1d7f 100644 --- a/core/modules/field/src/Tests/reEnableModuleFieldTest.php +++ b/core/modules/field/src/Tests/reEnableModuleFieldTest.php @@ -29,12 +29,19 @@ class reEnableModuleFieldTest extends WebTestBase { 'telephone' ); + /** + * A user with permission to create and edit own article content. + * + * @var \Drupal\user\UserInterface + */ + protected $articleCreator; + protected function setUp() { parent::setUp(); $this->drupalCreateContentType(array('type' => 'article')); - $this->article_creator = $this->drupalCreateUser(array('create article content', 'edit own article content')); - $this->drupalLogin($this->article_creator); + $this->articleCreator = $this->drupalCreateUser(array('create article content', 'edit own article content')); + $this->drupalLogin($this->articleCreator); } /**