You are here

public function FormModeManagerBase::assertLocalTasks in Form mode manager 8.2

Same name and namespace in other branches
  1. 8 tests/src/Functional/FormModeManagerBase.php \Drupal\Tests\form_mode_manager\Functional\FormModeManagerBase::assertLocalTasks()

Tests the EntityFormMode user interface.

Throws

\Behat\Mink\Exception\ExpectationException

3 calls to FormModeManagerBase::assertLocalTasks()
FormModeManagerUiTest::testEntityFormModeManagerLinksUi in tests/src/Functional/FormModeManagerUiTest.php
Tests the Form Mode Manager user Links positions interface.
FormModeManagerUiTest::testEntityFormModeManagerSettingsUi in tests/src/Functional/FormModeManagerUiTest.php
Tests the Form Mode Manager Settings interface.
FormModeManagerUiTest::testFormModeManagerNodeLocalTasks in tests/src/Functional/FormModeManagerUiTest.php
Test Form mode manager Local tasks.

File

tests/src/Functional/FormModeManagerBase.php, line 188

Class

FormModeManagerBase
Provides a test case for form_mode_manager functional tests.

Namespace

Drupal\Tests\form_mode_manager\Functional

Code

public function assertLocalTasks($tabs_expected) {
  foreach ($tabs_expected as $link) {
    $this
      ->assertSession()
      ->linkExists($link);
  }
}