public function ForenaInegrationTest::testReport in Forena Reports 8
Test Forena Report.
File
- src/
Tests/ ForenaInegrationTest.php, line 95 - tests Tests for forena. @author davidmetzler
Class
- ForenaInegrationTest
- Class ForenaInegrationTest
Namespace
Drupal\forena\TestsCode
public function testReport() {
// Simple Report.
if ($this->privileged_user) {
$this
->drupalLogin($this->privileged_user);
}
$this
->drupalGet('reports/sample.states');
$this
->assertText('Simple Table', 'The report title is there.');
$this
->assertText('Alaska', 'A state in the report exists');
// Test ajax callback
$this
->drupalGet('reports/sample.states/nojs/sample-report/html');
$this
->assertText('Simple Table', 'The report title is there.');
// Report with links
$this
->drupalGet('reports/sample.state_summary');
$this
->assertText('FL - Florida', 'A state in the report exists');
}