You are here

public function JSONExporterTest::testExportAllPages in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/JSONExporterTest.php, line 45
Tests for the JSONExporter class

Class

JSONExporterTest

Namespace

AKlump\LoftDataGrids

Code

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