You are here

public function FrxXMLTest::testFrxXML in Forena Reports 8

Test FrxXML Renderer

File

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

Class

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

Namespace

Drupal\Tests\forena\Unit\Renderer

Code

public function testFrxXML() {
  $data = $this
    ->dataManager()
    ->data('test/simple_data');
  $this
    ->pushData($data);
  $output = $this
    ->render('\\Drupal\\forena\\FrxPlugin\\Renderer\\FrxXML', $this->doc);
  $this
    ->popData();
  $this
    ->assertContains('<col1>data</col1>', $output, 'Rendered Control contains column data');
}