function AnalyticsTestCase::testAnalyticsStorage in Analytics 6
File
- tests/
analytics.test, line 27 - Tests for analytics module.
Class
- AnalyticsTestCase
- Basic storage tests.
Code
function testAnalyticsStorage() {
$test_data = array(
'param1' => 'foo',
'param2' => 'bar',
);
$this
->curlExec(array(
CURLOPT_URL => 'analytics/api/test',
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => array(
'analytics_data' => serialize($test_data),
),
CURLOPT_HTTPHEADER => array(),
));
$this
->getUrl('admin/reports/analytics');
$this
->assertText('1 times', 'Analytics storage is working');
}