You are here

public function SystemLocalTasksTest::testSystemAdminLocalTasks in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/src/Unit/Menu/SystemLocalTasksTest.php \Drupal\Tests\system\Unit\Menu\SystemLocalTasksTest::testSystemAdminLocalTasks()
  2. 9 core/modules/system/tests/src/Unit/Menu/SystemLocalTasksTest.php \Drupal\Tests\system\Unit\Menu\SystemLocalTasksTest::testSystemAdminLocalTasks()

Tests local task existence.

@dataProvider getSystemAdminRoutes

File

core/modules/system/tests/src/Unit/Menu/SystemLocalTasksTest.php, line 54

Class

SystemLocalTasksTest
Tests existence of system local tasks.

Namespace

Drupal\Tests\system\Unit\Menu

Code

public function testSystemAdminLocalTasks($route, $expected) {
  $this
    ->assertLocalTasks($route, $expected);
}