You are here

public function FrxIncludeTest::testRender in Forena Reports 8

Test the rendering of the control.

File

tests/src/Unit/Renderer/FrxIncludeTest.php, line 44

Class

FrxIncludeTest
Class FrxIncludeTest @group Forena @require module forena @coversDefaultClass \Drupal\forena\FrxPlugin\Renderer\FrxInclude

Namespace

Drupal\Tests\forena\Unit\Renderer

Code

public function testRender() {
  $doc = $this
    ->getDocument();
  $doc
    ->clear();
  $this
    ->render('\\Drupal\\forena\\FrxPlugin\\Renderer\\FrxInclude', $this->doc);
  $content = $doc
    ->flush();
  $output = $content['report']['#template'];
  $this
    ->assertContains('col1', $output, "Report content in buffer");
}