public function IntegrationTest::setUp in Search API 8
Same name in this branch
- 8 tests/src/Functional/IntegrationTest.php \Drupal\Tests\search_api\Functional\IntegrationTest::setUp()
- 8 modules/search_api_db/search_api_db_defaults/tests/src/Functional/IntegrationTest.php \Drupal\Tests\search_api_db_defaults\Functional\IntegrationTest::setUp()
Overrides SearchApiBrowserTestBase::setUp
File
- tests/
src/ Functional/ IntegrationTest.php, line 76
Class
- IntegrationTest
- Tests the overall functionality of the Search API framework and admin UI.
Namespace
Drupal\Tests\search_api\FunctionalCode
public function setUp() {
parent::setUp();
$this->indexStorage = \Drupal::entityTypeManager()
->getStorage('search_api_index');
$permissions = [
'administer search_api',
'access administration pages',
'administer nodes',
'bypass node access',
'administer content types',
'administer node fields',
];
$this->adminUser = $this
->drupalCreateUser($permissions);
$this->adminUser2 = $this
->drupalCreateUser($permissions);
$this
->drupalLogin($this->adminUser);
}