class ActionLocalTasksTest
Tests action local tasks.
@group action
Hierarchy
- class \Drupal\Tests\UnitTestCase uses \Drupal\Tests\Traits\PhpUnitWarnings, \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait implements \PHPUnit\Framework\TestCase
- class \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase implements \Drupal\Tests\UnitTestCase
- class \Drupal\Tests\action\Unit\Menu\ActionLocalTasksTest implements \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase
- class \Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase implements \Drupal\Tests\UnitTestCase
Expanded class hierarchy of ActionLocalTasksTest
File
-
core/
modules/ action/ tests/ src/ Unit/ Menu/ ActionLocalTasksTest.php, line 12
Namespace
Drupal\Tests\action\Unit\MenuView source
class ActionLocalTasksTest extends LocalTaskIntegrationTestBase {
/**
* {@inheritdoc}
*/
protected function setUp() : void {
$this->directoryList = [
'action' => 'core/modules/action',
];
parent::setUp();
}
/**
* Tests local task existence.
*/
public function testActionLocalTasks() {
$this->assertLocalTasks('entity.action.collection', [
[
'action.admin',
],
]);
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.