You are here

function CSVExporterTest::testFilename 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::testFilename()

File

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

Class

CSVExporterTest

Namespace

AKlump\LoftDataGrids

Code

function testFilename() {
  $this->exporter
    ->setFilename('alpha.txt');
  $this
    ->assertSame('alpha.csv', $this->exporter
    ->getFilename());
  $this->exporter
    ->setFilename('bravo.csv');
  $this
    ->assertSame('bravo.csv', $this->exporter
    ->getFilename());
  $obj = new CSVExporter($this->data, 'omega.php');
  $this
    ->assertSame('omega.csv', $obj
    ->getFilename());
}