You are here

public function XMLExporterTest::testOutput1 in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/XMLExporterTest.php, line 42
Tests for the XMLExporter class

Class

XMLExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testOutput1() {
  $control = '<?xml version="1.0"?>
<data><page id="1"><record id="0"><order_no_>1182</order_no_><transaction_date>11/7/13</transaction_date><customer_name>Hope, Roberta</customer_name></record></page></data>
';
  $subject = $this->exporter
    ->export(1);
  $this
    ->assertSame($control, $subject);
}