You are here

public function ForenaInegrationTest::testHooks in Forena Reports 8

Test hooks Implementations

File

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

Class

ForenaInegrationTest
Class ForenaInegrationTest

Namespace

Drupal\forena\Tests

Code

public function testHooks() {
  $repository = $this->frx
    ->dataManager()
    ->repository('test');
  $this
    ->assertTrue($repository !== NULL, 'Test Data Repository Defined');
  $title = $repository->conf['title'];
  $this
    ->assertEqual($title, 'Altered Test Data');
  $plugins = AppService::instance()
    ->getRendererPlugins();
  $this
    ->assertTrue(isset($plugins['FrxCrosstab']), "Crosstab Renderer Exists");
}