protected function IntegrationTest::getAdminPath in Search API Autocomplete 8
Returns the path of an admin page.
Parameters
string|null $page: (optional) Either "edit" or "delete" to get the path of the respective search form, or NULL for the index's "Autocomplete" tab.
string|null $search_id: (optional) The ID of the search to link to, if a page is specified. NULL to use the default search used by this test.
Return value
string The internal path to the specified page.
Overrides IntegrationTestBase::getAdminPath
7 calls to IntegrationTest::getAdminPath()
- IntegrationTest::checkAdminAccess in tests/
src/ FunctionalJavascript/ IntegrationTest.php - Verifies that admin pages are properly protected.
- IntegrationTest::checkCustomAutocompleteScript in tests/
src/ FunctionalJavascript/ IntegrationTest.php - Tests whether using a custom autocomplete script is properly supported.
- IntegrationTest::checkHooks in tests/
src/ FunctionalJavascript/ IntegrationTest.php - Checks that the module's hooks work as expected.
- IntegrationTest::checkLiveResultsAutocomplete in tests/
src/ FunctionalJavascript/ IntegrationTest.php - Tests autocomplete with the "Live results" suggester.
- IntegrationTest::checkPluginCacheClear in tests/
src/ FunctionalJavascript/ IntegrationTest.php - Verifies that creating or deleting a view clears the search plugin cache.
File
- tests/
src/ FunctionalJavascript/ IntegrationTest.php, line 556
Class
- IntegrationTest
- Tests the functionality of the whole module from a user's perspective.
Namespace
Drupal\Tests\search_api_autocomplete\FunctionalJavascriptCode
protected function getAdminPath($page = NULL, $search_id = NULL) {
$path = 'admin/config/search/search-api/index/autocomplete_search_index/autocomplete';
if ($page !== NULL) {
if ($search_id === NULL) {
$search_id = $this->searchId;
}
$path .= "/{$search_id}/{$page}";
}
return $path;
}