public function LocalTasksTest::testLocalTasksEntity in Twitter Profile Widget 8
Tests whether the server's local tasks are present at the given route.
@dataProvider getPageRoutesEntity
Parameters
string $route: The route to test.
File
- tests/
src/ Unit/ Menu/ LocalTasksTest.php, line 36
Class
- LocalTasksTest
- Tests whether Twitter Profile Widget local tasks work correctly.
Namespace
Drupal\Tests\twitter_profile_widget\Unit\MenuCode
public function testLocalTasksEntity($route) {
$tasks = [
0 => [
'entity.twitter_widget.canonical',
'entity.twitter_widget.edit_form',
'entity.twitter_widget.delete_form',
],
];
$this
->assertLocalTasks($route, $tasks);
}