public function FrxAjaxTest::testAjaxRender in Forena Reports 8
Test for new ajax renderer.
File
- tests/
src/ Unit/ Renderer/ FrxAjaxTest.php, line 35
Class
- FrxAjaxTest
- @group Forena @require module forena @coversDefaultClass \Drupal\forena\FrxPlugin\Renderer\FrxAjax
Namespace
Drupal\Tests\forena\Unit\RendererCode
public function testAjaxRender() {
$this
->getDocument()
->clear();
$output = $this
->render('\\Drupal\\forena\\FrxPlugin\\Renderer\\FrxAjax', $this->doc);
$this
->assertEmpty($output, "Ajax Doesn't produce output");
$commands = $this
->getDocument()
->getAjaxCommands();
$this
->assertEquals(1, count($commands['post']));
}