function StatsproTestCase::testInitialState in Statistics Pro 6
Same name and namespace in other branches
- 6.2 tests/statspro.test \StatsproTestCase::testInitialState()
File
- tests/statspro.test, line 619
- Functionality tests for Statistics Pro.
Class
- StatsproTestCase
- Class resposible for testing the statspro class.
Code
function testInitialState() {
$this
->createInitialData();
$this
->callCron();
$group = t('General statspro class tests');
$this
->completeTestAggregatedData('pi', 0, $group);
$this
->completeTestAggregatedData('upi', 0, $group);
$this
->completeTestAggregatedData('error', 0, $group);
$this
->completeTestAggregatedData('uerror', 0, $group);
$this
->completeTestAggregatedData('warning', 0, $group);
$this
->completeTestAggregatedData('uwarning', 0, $group);
$correct = 2 + count($this->users);
$this
->completeTestAggregatedData('users', $correct, $group);
$this
->completeTestAggregatedData('terms', 0, $group);
$correct = count($this->node_titles);
$this
->completeTestAggregatedData('nodes', $correct, $group);
$correct = 2;
$this
->completeTestAggregatedData('node_types', $correct, $group);
$this
->completeTestAggregatedData('comments', 0, $group);
$this
->completeTestAggregatedData('aliases', 0, $group);
$this
->completeTestAggregatedData('sessions', 1, $group);
$correct = 11 + count($this->modules);
$this
->completeTestAggregatedData('modules', $correct, $group);
}