public function ExporterBase::assertMethodSaveFile in Loft Data Grids 7.2
Make sure that saveFile creates a file and returns the path.
6 calls to ExporterBase::assertMethodSaveFile()
- ArrayExporterTest::testSaveFile in vendor/
aklump/ loft_data_grids/ tests/ phpunit/ ArrayExporterTest.php - JSONExporterTest::testExportAllPages in vendor/
aklump/ loft_data_grids/ tests/ phpunit/ JSONExporterTest.php - ValuesOnlyExporterTest::testOutput in vendor/
aklump/ loft_data_grids/ tests/ phpunit/ ValuesOnlyExporterTest.php - XLSExporterTest::testOutput in vendor/
aklump/ loft_data_grids/ tests/ phpunit/ XLSXExporterTest.php - XMLExporterTest::testOutput in vendor/
aklump/ loft_data_grids/ tests/ phpunit/ XMLExporterTest.php
File
- vendor/
aklump/ loft_data_grids/ tests/ phpunit/ ExporterBase.php, line 65 - Tests for the YamlExporter class
Class
- ExporterBase
- Class ExporterBase
Namespace
AKlump\LoftDataGridsCode
public function assertMethodSaveFile() {
$obj = clone $this->exporter;
$this->sandboxFilePath = $this->sandbox . '/' . $obj
->setFilename('export');
$this
->assertFileNotExists($this->sandboxFilePath);
$returnPath = $this->exporter
->saveFile($this->sandbox, 'export');
$this
->assertSame($this->sandboxFilePath, $returnPath);
}