function RestExampleMenuTest::testRestExampleLink

Same name in other branches
  1. 3.x modules/rest_example/tests/src/Functional/RestExampleMenuTest.php \Drupal\Tests\rest_example\Funtional\RestExampleMenuTest::testRestExampleLink()

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');
}