protected function XMLExportViewsDataExportExporterTests::testEOF in Views data export 7.4
Test End Of File.
File
- tests/
exporter_tests/ xml.test, line 291
Class
Code
protected function testEOF() {
$exporter = $this
->getExporter(array(
'field_labels' => array(
'name',
'age',
'job',
'created',
),
'root_node' => 'test_root_node',
));
$result = $this
->executeEOF($exporter);
$expect = '</test_root_node>' . PHP_EOL;
$this
->logVerboseResult($result, 'Actual result');
$this
->logVerboseResult($expect, 'Expected to contain');
$this
->assertEqual($result, $expect, 'The EOF is as expected.');
}