You are here

public function FieldExampleMenuTest::testFieldExampleLink in Examples for Developers 3.x

Same name and namespace in other branches
  1. 8 field_example/tests/src/Functional/FieldExampleMenuTest.php \Drupal\Tests\field_example\Functional\FieldExampleMenuTest::testFieldExampleLink()

Test for a link to the block example in the Tools menu.

File

modules/field_example/tests/src/Functional/FieldExampleMenuTest.php, line 34

Class

FieldExampleMenuTest
Test the user-facing menus in Field Example.

Namespace

Drupal\Tests\field_example\Functional

Code

public function testFieldExampleLink() {
  $assert = $this
    ->assertSession();
  $this
    ->drupalGet('');
  $assert
    ->linkByHrefExists('examples/field-example');
}