function XLSExporterTest::setUp in Loft Data Grids 7.2
Overrides ExporterBase::setUp
File
- vendor/
aklump/ loft_data_grids/ tests/ phpunit/ XLSXExporterTest.php, line 125 - Tests for the XLSExporter class
Class
Namespace
AKlump\LoftDataGridsCode
function setUp() {
$this->data2 = new ExportData();
$this->records2[0] = array(
'Order No.' => '1181',
'Transaction Date' => '11/6/13',
'Customer Name' => 'Hope, Bob',
'Customer Billing Address' => '22255 King Street Apt. 1Z',
'Customer Billing City' => 'Honolulu',
'Customer Billing State' => 'HI',
'Customer Billing Zip' => '96813',
'Customer Billing Country' => 'US',
'California Taxed Purchase Amount' => 0,
'Domestic Purchase Amount' => 20,
'International Purchase Amount' => 0,
'Order Status' => 'Completed',
);
foreach ($this->records2[0] as $key => $value) {
$this->data2
->add($key, $value);
}
$this->data2
->next();
$this->exporter2 = new XLSXExporter($this->data2);
parent::setUp();
$this->exporter = new XLSXExporter($this->data);
}