You are here

public function FrxTemplateTest::testFrxTemplate in Forena Reports 8

Test FrxXML Renderer

File

tests/src/Unit/Renderer/FrxTemplateTest.php, line 40

Class

FrxTemplateTest
@group Forena @require module forena @coversDefaultClass \Drupal\forena\FrxPlugin\Renderer\FrxXML

Namespace

Drupal\Tests\forena\Unit\Renderer

Code

public function testFrxTemplate() {
  $data = $this
    ->dataManager()
    ->data('test/template_data');
  $this
    ->pushData($data);
  $output = $this
    ->render('\\Drupal\\forena\\FrxPlugin\\Renderer\\FrxTemplate', $this->doc);
  $this
    ->popData();
  $this
    ->assertContains("Hello Mr. Dave", $output, 'Template Rendered');
}