You are here

protected function SearchPageTest::setUp in Opigno Search 8

Same name and namespace in other branches
  1. 3.x tests/src/Functional/SearchPageTest.php \Drupal\Tests\opigno_learning_path\Functional\SearchPageTest::setUp()

Overrides LearningPathBrowserTestBase::setUp

File

tests/src/Functional/SearchPageTest.php, line 41

Class

SearchPageTest
Tests for Search process.

Namespace

Drupal\Tests\opigno_learning_path\Functional

Code

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

  // Login as search admin.
  $adminUser = $this
    ->drupalCreateUser([
    'administer search_api',
    'access administration pages',
  ], 'TestUser');
  $this
    ->drupalLogin($adminUser);
}