diff options
author | mattpiwik <matthieu.aubry@gmail.com> | 2011-01-15 13:34:59 +0300 |
---|---|---|
committer | mattpiwik <matthieu.aubry@gmail.com> | 2011-01-15 13:34:59 +0300 |
commit | dda47fe9007b3040e8d90515ce7648a3f7ce5064 (patch) | |
tree | 29994fdc68d22fb6a00b40c1c2de0b54e460b87c /plugins/Actions/tests | |
parent | 812f8d9fa8abdf3067409c3adc010142066cb77c (diff) |
Fixing tests, problem was that the config file was not properly re-initialized after being messed up (on purpose) in some other tests
git-svn-id: http://dev.piwik.org/svn/trunk@3740 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/Actions/tests')
-rw-r--r-- | plugins/Actions/tests/Actions.test.php | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/plugins/Actions/tests/Actions.test.php b/plugins/Actions/tests/Actions.test.php index 24891d1279..4723c9c91d 100644 --- a/plugins/Actions/tests/Actions.test.php +++ b/plugins/Actions/tests/Actions.test.php @@ -10,12 +10,20 @@ require_once 'Tracker/Config.php'; class Test_Piwik_Actions extends UnitTestCase { - function test_getActionExplodedNames() + + function setUp() { $userFile = PIWIK_INCLUDE_PATH . '/tests/resources/plugins/Actions/Actions.config.ini.php'; - Piwik::createConfigObject($userFile); - + } + + function tearDown() + { + Piwik::createConfigObject(); + } + + function test_getActionExplodedNames() + { $action = new Test_Piwik_Actions_getActionExplodedNames(); $tests = array( |