public function RestExampleActionTest::testServerView in Examples for Developers 3.x
Test that we can access the server side View.
Throws
\Behat\Mink\Exception\ExpectationException
File
- modules/
rest_example/ tests/ src/ Functional/ RestExampleActionTest.php, line 69
Class
- RestExampleActionTest
- Verify that the Views are accessible.
Namespace
Drupal\Tests\rest_example\FuntionalCode
public function testServerView() {
$this
->drupalGet('rest/node');
$this
->assertSession()
->responseContains('[]');
}