function FieldExampleMenuTest::testBlockExampleMenu

Same name in other branches
  1. 3.x modules/field_example/tests/src/Functional/FieldExampleMenuTest.php \Drupal\Tests\field_example\Functional\FieldExampleMenuTest::testBlockExampleMenu()
  2. 8.x-1.x field_example/tests/src/Functional/FieldExampleMenuTest.php \Drupal\Tests\field_example\Functional\FieldExampleMenuTest::testBlockExampleMenu()

Tests field_example menus.

File

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

Class

FieldExampleMenuTest
Test the user-facing menus in Field Example.

Namespace

Drupal\Tests\field_example\Functional

Code

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