You are here

protected function IntegrationTest::setUp in Search API Autocomplete 8

Overrides BrowserTestBase::setUp

File

tests/src/FunctionalJavascript/IntegrationTest.php, line 60

Class

IntegrationTest
Tests the functionality of the whole module from a user's perspective.

Namespace

Drupal\Tests\search_api_autocomplete\FunctionalJavascript

Code

protected function setUp() {
  parent::setUp();
  $permissions = [
    'administer search_api',
    'administer search_api_autocomplete',
    'administer permissions',
    'view test entity',
  ];
  $this->adminUser = $this
    ->drupalCreateUser($permissions);
  $this->normalUser = $this
    ->drupalCreateUser();
  $this
    ->setUpExampleStructure();
  $this
    ->insertExampleContent();
}