public function RestExampleMenuTest::testRestExampleMenu in Examples for Developers 3.x
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);
}