You are here

public function ForenaInegrationTest::testAjaxCommands in Forena Reports 8

Test Ajax command list

File

src/Tests/ForenaInegrationTest.php, line 135
tests Tests for forena. @author davidmetzler

Class

ForenaInegrationTest
Class ForenaInegrationTest

Namespace

Drupal\forena\Tests

Code

public function testAjaxCommands() {
  $plugins = AppService::instance()
    ->getAjaxPlugins();
  $this
    ->assertTrue(!empty($plugins['add_css']), 'add_css');
  $this
    ->assertTrue(!empty($plugins['after']), 'after');
  $this
    ->assertTrue(!empty($plugins['alert']), 'alert');
  $this
    ->assertTrue(!empty($plugins['append']), 'append');
  $this
    ->assertTrue(!empty($plugins['before']), 'before');
  $this
    ->assertTrue(!empty($plugins['changed']), 'changed');
  $this
    ->assertTrue(!empty($plugins['closeDialog']), 'closeDialog');
  $this
    ->assertTrue(!empty($plugins['closeModalDialog']), 'closeModalDialog');
  $this
    ->assertTrue(!empty($plugins['css']), 'css');
  $this
    ->assertTrue(!empty($plugins['data']), 'data');
  $this
    ->assertTrue(!empty($plugins['html']), 'html');
  $this
    ->assertTrue(!empty($plugins['invoke']), 'invoke');
  $this
    ->assertTrue(!empty($plugins['openDialog']), 'openDialog');
  $this
    ->assertTrue(!empty($plugins['openModalDialog']), 'openModalDialog');
  $this
    ->assertTrue(!empty($plugins['prepend']), 'prepend');
  $this
    ->assertTrue(!empty($plugins['replace']), 'replace');
  $this
    ->assertTrue(!empty($plugins['restripe']), 'restripe');
  $this
    ->assertTrue(!empty($plugins['settings']), 'settings');
}