public function ViewsDataExportTest::testHttpResponse in Views data export 8
Test proper response.
File
- tests/
src/ Functional/ ViewsDataExportTest.php, line 46
Class
- ViewsDataExportTest
- Tests views data export views.
Namespace
Drupal\Tests\views_data_export\FunctionalCode
public function testHttpResponse() {
// Load the linked page display.
$this
->drupalGet('test/data_export/page');
$this
->assertSession()
->statusCodeEquals(200);
// Click on the link to export.
$this
->clickLink('Download JSON');
$this
->assertSession()
->statusCodeEquals(200);
}