forena.test in Forena Reports 7.5
Same filename in this branch
Same filename and directory in other branches
tests Tests for forena. @author davidmetzler
File
forena.testView source
<?php
/**
* @file tests
* Tests for forena.
* @author davidmetzler
*
*/
class ForenaReportTestCase extends DrupalWebTestCase {
public $privileged_user;
public static function getInfo() {
return array(
'name' => 'Forena Reports',
'description' => 'Report rendering tests for forena',
'group' => t('Forena'),
);
}
public function setup() {
parent::setup('forena');
// Create and log in our privileged user.
$this->privileged_user = $this
->drupalCreateUser(array(
'access sampledb data',
'administer forena reports',
'list reports',
));
$this
->drupalLogin($this->privileged_user);
}
/**
* Test basic Forena Report.
*/
public function testConfig() {
$this
->drupalGet('forena');
$this
->drupalGet('reports/sample.states');
$this
->assertText('Simple Table');
$this
->assertText('Alaska');
}
}
Classes
Name | Description |
---|---|
ForenaReportTestCase | @file tests Tests for forena. @author davidmetzler |