You are here

public function XMLExporterTest::testOutput in Loft Data Grids 7.2

File

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

Class

XMLExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testOutput() {
  $control = '<?xml version="1.0"?>
<data><page id="0"><record id="0"><order_no_>1181</order_no_><customer_billing_country>US</customer_billing_country><california_taxed_purchase_amount>0</california_taxed_purchase_amount></record></page><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();
  $this
    ->assertSame($control, $subject);
  $this
    ->assertMethodSaveFile();
  $this
    ->assertSandboxFileContents($control);
}