public function ForenaReportTestCase::testRender in Forena Reports 7.5
Test FRX report Report Syntax.
File
- tests/
forena.test, line 51 - tests Tests for forena. @author davidmetzler
Class
- ForenaReportTestCase
- @file tests Tests for forena. @author davidmetzler
Code
public function testRender() {
// Load the sytnax tests
$this
->drupalGet('reports/test-report');
$this
->assertText('Render Test', 'The report title exists');
$this
->assertText('Not Succeeded', 'Not Positive case.');
$this
->assertNoText('Not Failed', 'Not Negative case.');
$this
->assertText('True Succeeded', 'True positive case.');
$this
->assertNoText('True Failed', 'True negative case');
$this
->assertText('Row Count = 3', 'Row count check.');
$this
->assertText('Row Sum = 6', 'Row Sum check');
$this
->assertText('This is an included report.', 'Included report text is present.');
// Test an filtered report.
$this
->drupalGet('reports/sample.user_distribution_simple', array(
'query' => array(
'state' => 'VA',
),
));
$this
->assertText('Virginia', 'Found Filtered state.');
$this
->assertText('Amesbury', 'Table detail found.');
}