You are here

public function ArrayExporterTest::testSaveFile in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/ArrayExporterTest.php, line 20
Tests for the ArrayExporter class

Class

ArrayExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testSaveFile() {
  $data = new ExportData();
  $data
    ->add('do', 're');
  $this->exporter
    ->setData($data);
  $this
    ->assertMethodSaveFile();
  $control = '<?php
array (
  0 =>
  array (
    0 =>
    array (
      \'do\' => \'re\',
    ),
  ),
);
';
  $this
    ->assertSandboxFileContents($control);
}