You are here

public function ReportTest::testIncludedReport in Forena Reports 8

File

tests/src/Unit/ReportTest.php, line 147
Implements ReportTest

Class

ReportTest
@group Forena @require module forena @coversDefaultClass \Drupal\forena\Report

Namespace

Drupal\Tests\forena\Unit

Code

public function testIncludedReport() {
  $content = $this
    ->report('include');
  $report = $content['report']['#template'];
  $this
    ->assertContains('Header', $report, 'Header in tact');
  $this
    ->assertContains('col1', $report, 'Embedded report.');
  $this
    ->assertContains('Footer', $report, 'Footer in tact');
  $this
    ->assertContains('<a href', $report, 'Link got generated');
}