function RestExampleActionTest::testServerView

Same name in other branches
  1. 4.0.x modules/rest_example/tests/src/Functional/RestExampleActionTest.php \Drupal\Tests\rest_example\Funtional\RestExampleActionTest::testServerView()

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\Funtional

Code

public function testServerView() {
    $this->drupalGet('rest/node');
    $this->assertSession()
        ->responseContains('[]');
}