You are here

public function RestExampleMenuTest::testRestExampleLink in Examples for Developers 3.x

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

Throws

\Behat\Mink\Exception\ExpectationException

File

modules/rest_example/tests/src/Functional/RestExampleMenuTest.php, line 37

Class

RestExampleMenuTest
Test the user-facing menus in Rest Example.

Namespace

Drupal\Tests\rest_example\Funtional

Code

public function testRestExampleLink() {
  $this
    ->drupalGet('');
  $this
    ->assertSession()
    ->linkByHrefExists('examples/rest-client-actions');
  $this
    ->assertSession()
    ->linkByHrefExists('examples/rest-client-settings');
}