public function BlockTest::setUp in Search API Pages 8
Overrides FunctionalTestBase::setUp
File
- tests/
src/ Functional/ BlockTest.php, line 15
Class
- BlockTest
- Provides web tests for Search API Pages.
Namespace
Drupal\Tests\search_api_page\FunctionalCode
public function setUp() {
parent::setUp();
$this
->drupalLogin($this->adminUser);
// Setup search api server and index.
$this
->setupSearchApi();
$this
->createSearchPage('search', 'Search', 'search', $this->index
->id());
$this
->createSearchPage('other_search', 'Search (Other)', 'other_search', $this->index
->id());
$this
->placeSearchBlock('search', 1);
$this
->placeSearchBlock('other_search', 2);
$this
->drupalGet('<front>');
}