You are here

public function ExporterBase::assertSandboxFileContents in Loft Data Grids 7.2

Parameters

string $control The expected file contents.:

5 calls to ExporterBase::assertSandboxFileContents()
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
XMLExporterTest::testOutput in vendor/aklump/loft_data_grids/tests/phpunit/XMLExporterTest.php
YAMLExporterTest::testOutput in vendor/aklump/loft_data_grids/tests/phpunit/YAMLExporterTest.php

File

vendor/aklump/loft_data_grids/tests/phpunit/ExporterBase.php, line 77
Tests for the YamlExporter class

Class

ExporterBase
Class ExporterBase

Namespace

AKlump\LoftDataGrids

Code

public function assertSandboxFileContents($control) {
  $this
    ->assertFileExists($this->sandboxFilePath);
  $this
    ->assertSame($control, file_get_contents($this->sandboxFilePath));
  unlink($this->sandboxFilePath);
  $this
    ->assertFileNotExists($this->sandboxFilePath);
}