You are here

protected function SearchApiBrowserTestBase::getIndexPath in Search API 8

Returns the system path for the test index.

Parameters

string|null $tab: (optional) If set, the path suffix for a specific index tab.

Return value

string A system path.

28 calls to SearchApiBrowserTestBase::getIndexPath()
EventsTest::testEvents in tests/src/Functional/EventsTest.php
Tests whether events are correctly dispatched when using the admin UI.
HooksTest::testHooks in tests/src/Functional/HooksTest.php
Tests various operations via the Search API's admin UI.
IntegrationTest::addField in tests/src/Functional/IntegrationTest.php
Adds a field for a specific property to the index.
IntegrationTest::addFieldsToIndex in tests/src/Functional/IntegrationTest.php
Tests whether adding fields to the index works correctly.
IntegrationTest::addFieldsWithDependenciesToIndex in tests/src/Functional/IntegrationTest.php
Tests field dependencies.

... See full list

File

tests/src/Functional/SearchApiBrowserTestBase.php, line 195

Class

SearchApiBrowserTestBase
Provides the base class for web tests for Search API.

Namespace

Drupal\Tests\search_api\Functional

Code

protected function getIndexPath($tab = NULL) {
  $path = 'admin/config/search/search-api/index/' . $this->indexId;
  if ($tab) {
    $path .= "/{$tab}";
  }
  return $path;
}