You are here

protected function ViewsDataExportGarbageCollectionTest::getExportView in Views data export 7.3

1 call to ViewsDataExportGarbageCollectionTest::getExportView()
ViewsDataExportGarbageCollectionTest::testExportedGarbageCollection in tests/garbagecollection.test
Test that VDE export can only be downloaded by the user that created them.

File

tests/garbagecollection.test, line 122

Class

ViewsDataExportGarbageCollectionTest
Test class for garbage collection of VDE export data.

Code

protected function getExportView($path = 'vde_test') {

  // Create the basic view.
  $view = $this
    ->getBasicExportView();
  $display = $view
    ->new_display('views_data_export', 'Data export', 'vde_test');
  $display
    ->override_option('style_plugin', $this
    ->getStylePluginName());
  $display
    ->override_option('path', $path);
  $expected = '[ID]

1
[Name]

John
[Age]

25
----------------------------------------

[ID]

2
[Name]

George
[Age]

27
----------------------------------------

[ID]

3
[Name]

Ringo
[Age]

28
----------------------------------------

[ID]

4
[Name]

Paul
[Age]

26
----------------------------------------

[ID]

5
[Name]

Meredith
[Age]

30
----------------------------------------';
  return array(
    &$view,
    $expected,
  );
}