You are here

public function ForenaInegrationTest::testCrossTab in Forena Reports 8

Test Crosstab renderer

File

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

Class

ForenaInegrationTest
Class ForenaInegrationTest

Namespace

Drupal\forena\Tests

Code

public function testCrossTab() {
  if ($this->privileged_user) {
    $this
      ->drupalLogin($this->privileged_user);
  }
  $this
    ->drupalGet('reports/crosstab');
  $this
    ->assertText('Male');
  $this
    ->assertText('Female');
  $this
    ->assertText('Unknown');
}