You are here

function CSVExporterTest::testHeaders in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/aklump/loft_data_grids/tests/CSVExporterTest.php \AKlump\LoftDataGrids\CSVExporterTest::testHeaders()

File

vendor/aklump/loft_data_grids/tests/phpunit/CSVExporterTest.php, line 164
Tests for the CSVExporter class

Class

CSVExporterTest

Namespace

AKlump\LoftDataGrids

Code

function testHeaders() {
  $subject = $this->records[0];
  $return = $this->exporter
    ->getHeader();
  $control = array_combine(array_keys($subject), array_keys($subject));
  $this
    ->assertSame($control, $return);
}