function FieldUIRouteTest::assertLocalTasks

Same name in other branches
  1. 9 core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php \Drupal\Tests\field_ui\Functional\FieldUIRouteTest::assertLocalTasks()
  2. 8.9.x core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php \Drupal\Tests\field_ui\Functional\FieldUIRouteTest::assertLocalTasks()
  3. 10 core/modules/field_ui/tests/src/Functional/FieldUIRouteTest.php \Drupal\Tests\field_ui\Functional\FieldUIRouteTest::assertLocalTasks()

Asserts that local tasks exists.

@internal

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 125

Class

FieldUIRouteTest
Tests the functionality of the Field UI route subscriber.

Namespace

Drupal\Tests\field_ui\Functional

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.