You are here

public function YAMLFrontMatterImporterTest::testImportEmptyString in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/YAMLFrontMatterImporterTest.php, line 26

Class

YAMLFrontMatterImporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testImportEmptyString() {
  $obj = new YAMLFrontMatterImporter();
  $data = $obj
    ->import('');
  $this
    ->assertInstanceOf('AKlump\\LoftDataGrids\\ExportData', $data);
  $this
    ->assertSame('', $data
    ->getValue('body'));
}