blob: 43ccb743b8d34cf023cdac797559f561445fc51a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<?php
if(!defined("PATH_TEST_TO_ROOT")) {
define('PATH_TEST_TO_ROOT', '..');
}
if(!defined('CONFIG_TEST_INCLUDED'))
{
require_once PATH_TEST_TO_ROOT ."/../tests/config_test.php";
}
require 'LogStats/Db.php';
//Zend_Loader::loadClass('Piwik_');
class Test_Piwik_LogStats_Db extends UnitTestCase
{
function __construct( $title = '')
{
parent::__construct( $title );
}
public function setUp()
{
}
public function tearDown()
{
}
/**
* test that the profiler is disabled (mandatory on a production server)
*/
public function test_profilingDisabledProduction()
{
$this->assertTrue(Piwik_LogStats_Db::isProfilingEnabled() === false, 'PROFILER SHOULD BE DISABLED IN PRODUCTION!! See Piwik_LogStats_Db::$profiling');
}
}
|