function RestExampleMenuTest::testRestExampleMenu

Same name and namespace in other branches
  1. 4.0.x modules/rest_example/tests/src/Functional/RestExampleMenuTest.php \Drupal\Tests\rest_example\Funtional\RestExampleMenuTest::testRestExampleMenu()

Tests rest_example menus.

Throws

\Behat\Mink\Exception\ExpectationException

File

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

Class

RestExampleMenuTest
Test the user-facing menus in Rest Example.

Namespace

Drupal\Tests\rest_example\Funtional

Code

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