function UpdateLocalTasksTest::testUpdateReportLocalTasks

Same name in other branches
  1. 8.9.x core/modules/update/tests/src/Unit/Menu/UpdateLocalTasksTest.php \Drupal\Tests\update\Unit\Menu\UpdateLocalTasksTest::testUpdateReportLocalTasks()
  2. 10 core/modules/update/tests/src/Unit/Menu/UpdateLocalTasksTest.php \Drupal\Tests\update\Unit\Menu\UpdateLocalTasksTest::testUpdateReportLocalTasks()
  3. 11.x core/modules/update/tests/src/Unit/Menu/UpdateLocalTasksTest.php \Drupal\Tests\update\Unit\Menu\UpdateLocalTasksTest::testUpdateReportLocalTasks()

Checks update report tasks.

@dataProvider getUpdateReportRoutes

File

core/modules/update/tests/src/Unit/Menu/UpdateLocalTasksTest.php, line 27

Class

UpdateLocalTasksTest
Tests existence of update local tasks.

Namespace

Drupal\Tests\update\Unit\Menu

Code

public function testUpdateReportLocalTasks($route) {
    $this->assertLocalTasks($route, [
        0 => [
            'update.status',
            'update.settings',
            'update.report_update',
        ],
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.