You are here

public function XMLExporterTest::testOutput0 in Loft Data Grids 7.2

File

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

Class

XMLExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testOutput0() {
  $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></data>
';
  $subject = $this->exporter
    ->export(0);
  $this
    ->assertSame($control, $subject);
}