You are here

public function LocalTasksTest::testLocalTasksServer in Search API 8

Tests whether the server's local tasks are present at the given route.

@dataProvider getPageRoutesServer

Parameters

string $route: The route to test.

File

tests/src/Unit/LocalTasksTest.php, line 36

Class

LocalTasksTest
Tests whether Search API's local tasks work correctly.

Namespace

Drupal\Tests\search_api\Unit

Code

public function testLocalTasksServer($route) {
  $tasks = [
    0 => [
      'entity.search_api_server.canonical',
      'entity.search_api_server.edit_form',
    ],
  ];
  $this
    ->assertLocalTasks($route, $tasks);
}