ActionLocalTasksTest.php
Same filename in other branches
Namespace
Drupal\Tests\action\Unit\MenuFile
-
core/
modules/ action/ tests/ src/ Unit/ Menu/ ActionLocalTasksTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\Tests\action\Unit\Menu;
use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;
/**
* Tests action local tasks.
*
* @group action
* @group legacy
*/
class ActionLocalTasksTest extends LocalTaskIntegrationTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() : void {
$this->directoryList = [
'action' => 'core/modules/action',
];
parent::setUp();
}
/**
* Tests local task existence.
*/
public function testActionLocalTasks() : void {
$this->assertLocalTasks('entity.action.collection', [
[
'action.admin',
],
]);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
ActionLocalTasksTest | Tests action local tasks. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.