You are here

public function ViewsDataExportSimpleExportTest::testNonBatchedExport in Views data export 7.4

Same name and namespace in other branches
  1. 7.3 tests/base.test \ViewsDataExportSimpleExportTest::testNonBatchedExport()

Tests the non-batched export functionality for this style.

File

tests/base.test, line 338

Class

ViewsDataExportSimpleExportTest

Code

public function testNonBatchedExport() {
  $path = 'vde_test/' . $this
    ->randomName();
  list($view, $expected) = $this
    ->getExportView($path);

  // Save this view so we can hit the path.
  $view
    ->save();

  // Ensure that the menu router system is rebuilt on the next page load.
  variable_set('menu_rebuild_needed', TRUE);
  $this
    ->drupalGet($path);
  $result = $this
    ->drupalGetContent();
  $this
    ->assertExportEqual($result, $expected, 'Non batched ' . $this->vde_export_type . ' export matched expected output.');
}