You are here

public function ArrayExporterTest::testPrunePage in Loft Data Grids 7.2

File

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

Class

ArrayExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testPrunePage() {
  $obj = clone $this->exporter;
  $obj
    ->addSetting('prune', true);
  $data = new ExportData();
  $data
    ->add('name', 'Bob');
  $this
    ->assertSame(array(
    'name' => 'Bob',
  ), $obj
    ->setData($data)
    ->export());
}