You are here

public function IntegrationTest::setUp in Search API 8

Same name in this branch
  1. 8 tests/src/Functional/IntegrationTest.php \Drupal\Tests\search_api\Functional\IntegrationTest::setUp()
  2. 8 modules/search_api_db/search_api_db_defaults/tests/src/Functional/IntegrationTest.php \Drupal\Tests\search_api_db_defaults\Functional\IntegrationTest::setUp()

Overrides BrowserTestBase::setUp

File

modules/search_api_db/search_api_db_defaults/tests/src/Functional/IntegrationTest.php, line 46

Class

IntegrationTest
Tests the correct installation of the default configs.

Namespace

Drupal\Tests\search_api_db_defaults\Functional

Code

public function setUp() {
  parent::setUp();

  // Create user with content access permission to see if the view is
  // accessible, and an admin to do the setup.
  $this->authenticatedUser = $this
    ->drupalCreateUser();
  $this->adminUser = $this
    ->drupalCreateUser([], NULL, TRUE);
}