public function LocalTasksTest::testLocalTasksIndex in Search API 8
Tests whether the index's local tasks are present at the given route.
@dataProvider getPageRoutesIndex
Parameters
string $route: The route to test.
File
- tests/
src/ Unit/ LocalTasksTest.php, line 68
Class
- LocalTasksTest
- Tests whether Search API's local tasks work correctly.
Namespace
Drupal\Tests\search_api\UnitCode
public function testLocalTasksIndex($route) {
$tasks = [
0 => [
'entity.search_api_index.canonical',
'entity.search_api_index.edit_form',
'entity.search_api_index.fields',
'entity.search_api_index.processors',
],
];
$this
->assertLocalTasks($route, $tasks);
}