You are here

public function BibciteEntityTest::setUp in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/tests/src/Functional/BibciteEntityTest.php \Drupal\Tests\bibcite_entity\Functional\BibciteEntityTest::setUp()

Overrides BrowserTestBase::setUp

File

modules/bibcite_entity/tests/src/Functional/BibciteEntityTest.php, line 44

Class

BibciteEntityTest
Test for entity functions.

Namespace

Drupal\Tests\bibcite_entity\Functional

Code

public function setUp() {
  parent::setUp();
  $this->user = $this
    ->drupalCreateUser([
    'administer bibcite',
    'administer bibcite_reference',
    'create bibcite_reference',
    'view bibcite_reference',
    'edit any bibcite_reference',
    'delete any bibcite_reference',
    'create bibcite_keyword',
    'view bibcite_keyword',
    'edit bibcite_keyword',
    'delete bibcite_keyword',
    'administer bibcite_keyword',
    'create bibcite_contributor',
    'view bibcite_contributor',
    'edit bibcite_contributor',
    'delete bibcite_contributor',
    'administer bibcite_contributor',
  ]);
  $this->simpleUser = $this
    ->drupalCreateUser();
}