You are here

public function ForenaControllerTest::testPageController in Forena Reports 8

Test the basic page controller

File

tests/src/Unit/ForenaControllerTest.php, line 25

Class

ForenaControllerTest
Controller test @group Forena @require module forena @coversDefaultClass \Drupal\forena\Controller\ForenaController

Namespace

Drupal\Tests\forena\Unit

Code

public function testPageController() {
  $controller = new ForenaController();
  $report = $controller
    ->report('test');
  $this
    ->assertArrayHasKey('report', $report);
}