You are here

public function YAMLExporterTest::testOutput in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/YAMLExporterTest.php, line 44
Tests for the YAMLExporter class

Class

YAMLExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testOutput() {
  $control = "-\n    - { 'Order No.': 1181, 'Customer Billing Country': US, 'California Taxed Purchase Amount': 0 }\n-\n    - { 'Order No.': '1182', 'Transaction Date': 11/7/13, 'Customer Name': 'Hope, Roberta' }\n";
  $subject = $this->exporter
    ->export();
  $this
    ->assertSame($control, $subject);
  $this
    ->assertMethodSaveFile();
  $this
    ->assertSandboxFileContents($control);
}