You are here

protected function XLSXExportViewsDataExportExporterTests::testEOF in Views data export 7.4

Test End Of File.

File

tests/exporter_tests/xlsx.test, line 107

Class

XLSXExportViewsDataExportExporterTests

Code

protected function testEOF() {
  $exporter = $this
    ->getExporter();
  $result = $this
    ->executeEOF($exporter);
  $expect = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><dimension ref="A1:E5"/><sheetData></sheetData></worksheet>';
  $this
    ->logVerboseResult($result, 'Actual result');
  $this
    ->logVerboseResult($expect, 'Expected to contain');
  $this
    ->assertEqual($result, $expect, 'The EOF is as expected.');
}