protected function ViewsDataExportAccessTest::getExportView in Views data export 7.3
1 call to ViewsDataExportAccessTest::getExportView()
- ViewsDataExportAccessTest::testExportedTempFileAccess in tests/
access.test - Test that VDE export can only be downloaded by the user that created them.
File
- tests/
access.test, line 143
Class
- ViewsDataExportAccessTest
- Test class for access checks for VDE downloads.
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,
);
}