ActionLocalTasksTest.php

Same filename in other branches
  1. 9 core/modules/action/tests/src/Unit/Menu/ActionLocalTasksTest.php
  2. 10 core/modules/action/tests/src/Unit/Menu/ActionLocalTasksTest.php
  3. 11.x core/modules/action/tests/src/Unit/Menu/ActionLocalTasksTest.php

Namespace

Drupal\Tests\action\Unit\Menu

File

core/modules/action/tests/src/Unit/Menu/ActionLocalTasksTest.php

View source
<?php

namespace Drupal\Tests\action\Unit\Menu;

use Drupal\Tests\Core\Menu\LocalTaskIntegrationTestBase;

/**
 * Tests action local tasks.
 *
 * @group action
 */
class ActionLocalTasksTest extends LocalTaskIntegrationTestBase {
    protected function setUp() {
        $this->directoryList = [
            'action' => 'core/modules/action',
        ];
        parent::setUp();
    }
    
    /**
     * Tests local task existence.
     */
    public function testActionLocalTasks() {
        $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.