You are here

protected function XLSXExportViewsDataExportExporterTests::testBOF in Views data export 7.4

Test the header writing.

File

tests/exporter_tests/xlsx.test, line 69

Class

XLSXExportViewsDataExportExporterTests

Code

protected function testBOF() {
  $result = $this
    ->executeBOF($this
    ->getExporter(array(
    'field_labels' => array(
      'name',
      'age',
      'job',
      'created',
    ),
  )));
  $expected = str_repeat(' ', 1024) . PHP_EOL;
  $this
    ->logVerboseResult($result, 'Actual result');
  $this
    ->logVerboseResult($expected, 'Expected result');
  $this
    ->assertEqual($result, $expected, 'The header is as expected.');
}