function FieldExampleMenuTest::testFieldExampleLink
Same name in other branches
- 3.x modules/field_example/tests/src/Functional/FieldExampleMenuTest.php \Drupal\Tests\field_example\Functional\FieldExampleMenuTest::testFieldExampleLink()
- 8.x-1.x 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\FunctionalCode
public function testFieldExampleLink() {
$assert = $this->assertSession();
$this->drupalGet('');
$assert->linkByHrefExists('examples/field-example');
}