You are here

private function ViewsXMLBackendBase::createTestUser in Views XML Backend 8

Creates a valid test User with supplied permissions.

Parameters

array $permissions: Permissions user should have.

Return value

\Drupal\Core\Session\AccountInterface|false A user account interface or FALSE if fails

1 call to ViewsXMLBackendBase::createTestUser()
ViewsXMLBackendBase::setUp in src/Tests/ViewsXMLBackendBase.php
Sets up a Drupal site for running functional and integration tests.

File

src/Tests/ViewsXMLBackendBase.php, line 131
Contains \Drupal\views_xml_backend\Tests\ViewsXMLBackendBase.

Class

ViewsXMLBackendBase
Provides supporting functions for testing the Views XML Backend module.

Namespace

Drupal\views_xml_backend\Tests

Code

private function createTestUser(array $permissions = []) {
  return $this
    ->drupalCreateUser($permissions);
}