You are here

public function FieldUIRouteTest::assertLocalTasks in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php \Drupal\Tests\field_ui\Functional\FieldUIRouteTest::assertLocalTasks()

Asserts that local tasks exists.

1 call to FieldUIRouteTest::assertLocalTasks()
FieldUIRouteTest::testFieldUIRoutes in core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php
Ensures that entity types with bundles do not break following entity types.

File

core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php, line 112

Class

FieldUIRouteTest
Tests the functionality of the Field UI route subscriber.

Namespace

Drupal\Tests\field_ui\Functional

Code

public function assertLocalTasks() {
  $this
    ->assertSession()
    ->linkExists('Settings');
  $this
    ->assertSession()
    ->linkExists('Manage fields');
  $this
    ->assertSession()
    ->linkExists('Manage display');
  $this
    ->assertSession()
    ->linkExists('Manage form display');
}