You are here

public function ViewsDataExportSimpleExportTest::testBatchedExport in Views data export 7.4

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

Tests the batched export functionality for this style.

File

tests/base.test, line 356

Class

ViewsDataExportSimpleExportTest

Code

public function testBatchedExport() {
  $path = 'vde_test/' . $this
    ->randomName();
  list($view, $expected) = $this
    ->getExportView($path);
  $display =& $view->display['vde_test']->handler;

  // Set this view to be batched.
  $display
    ->override_option('use_batch', 'batch');

  // 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
    ->assertBatchedExportEqual($path, $expected, 'Batched ' . $this->vde_export_type . ' export matched expected output.');
}