You are here

public function ReportManagerTest::testReportInclude in Forena Reports 8

File

tests/src/Unit/ReportManagerTest.php, line 46

Class

ReportManagerTest
Test Report Manager @group Forena @require module forena @coversDefaultClass \Drupal\forena\ReportManager

Namespace

Drupal\Tests\forena\Unit

Code

public function testReportInclude() {
  $doc = $this
    ->getDocument();
  $doc
    ->clear();
  ReportManager::instance()
    ->reportInclude('sample');
  $content = $doc
    ->flush();
  $output = $content['report']['#template'];
  $this
    ->assertContains('col1', $output);
}