function RestExampleMenuTest::testRestExampleMenu
Same name in other branches
- 3.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\FuntionalCode
public function testRestExampleMenu() {
$this->drupalGet('examples/rest-client-actions');
$this->assertSession()
->statusCodeEquals(200);
$this->drupalGet('examples/rest-client-settings');
$this->assertSession()
->statusCodeEquals(200);
}