function RestExampleActionTest::testServerView

Same name in other branches
  1. 3.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 74

Class

RestExampleActionTest
Verify that the Views are accessible.

Namespace

Drupal\Tests\rest_example\Functional

Code

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