public function FieldExampleMenuTest::testBlockExampleMenu in Examples for Developers 8
Same name and namespace in other branches
- 3.x modules/field_example/tests/src/Functional/FieldExampleMenuTest.php \Drupal\Tests\field_example\Functional\FieldExampleMenuTest::testBlockExampleMenu()
Tests field_example menus.
File
- field_example/
tests/ src/ Functional/ FieldExampleMenuTest.php, line 43
Class
- FieldExampleMenuTest
- Test the user-facing menus in Field Example.
Namespace
Drupal\Tests\field_example\FunctionalCode
public function testBlockExampleMenu() {
$assert = $this
->assertSession();
$this
->drupalGet('examples/field-example');
$assert
->statusCodeEquals(200);
}