You are here

ActionLocalTasksTest.php in Zircon Profile 8

Same filename and directory in other branches
  1. 8.0 core/modules/action/tests/src/Unit/Menu/ActionLocalTasksTest.php

File

core/modules/action/tests/src/Unit/Menu/ActionLocalTasksTest.php
View source
<?php

/**
 * @file
 * Contains \Drupal\Tests\action\Unit\Menu\ActionLocalTasksTest.
 */
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 = array(
      'action' => 'core/modules/action',
    );
    parent::setUp();
  }

  /**
   * Tests local task existence.
   */
  public function testActionLocalTasks() {
    $this
      ->assertLocalTasks('entity.action.collection', array(
      array(
        'action.admin',
      ),
    ));
  }

}

Classes

Namesort descending Description
ActionLocalTasksTest Tests action local tasks.