You are here

public function YAMLFrontMatterExporterTest::testExportNoFrontMatter in Loft Data Grids 7.2

File

vendor/aklump/loft_data_grids/tests/phpunit/YAMLFrontMatterExporterTest.php, line 13
Tests for the YAMLFrontMatterExporter class

Class

YAMLFrontMatterExporterTest

Namespace

AKlump\LoftDataGrids

Code

public function testExportNoFrontMatter() {
  $html = new ExportData();
  $html
    ->add('body', '<h1> {{ title }} </h1>
<p> {{ description }} </p>
Page content here...');
  $exporter = new YAMLFrontMatterExporter($html);
  $control = '<h1> {{ title }} </h1>
<p> {{ description }} </p>
Page content here...';
  $this
    ->assertSame($control, $exporter
    ->export());
}