You are here

public function JSONExporterTest::testExportPage1 in Loft Data Grids 7.2

File

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

Class

JSONExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testExportPage1() {
  $control = '[[{"Order No.":"1182","Transaction Date":"11\\/7\\/13","Customer Name":"Hope, Roberta"}]]';
  $subject = $this->exporter
    ->export(1);
  $this
    ->assertSame($control, $subject);
}