diff options
author | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-05-05 14:34:45 +0400 |
---|---|---|
committer | matt <matt@59fd770c-687e-43c8-a1e3-f5a4ff64c105> | 2010-05-05 14:34:45 +0400 |
commit | a755badbfbaf24cd3e91d279f6e6f70b74dd1837 (patch) | |
tree | d2ba48e34baf8d9105676c2513e30ed9806757b9 /plugins/SitesManager/tests | |
parent | 5402183fde4529f9e36b92e67db7b06e3c2ca6d1 (diff) |
Fixes unit tests to work with plugins that setup new tables, or execute ALTER queries during install()
It is also possible to specifically unload some plugins to ensure that the plugins don't affect the modules being tested (eg. SitesManager disables the feedburner plugin to avoid having to test for the new column added by feedburner plugin)
Diffstat (limited to 'plugins/SitesManager/tests')
-rw-r--r-- | plugins/SitesManager/tests/SitesManager.test.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/SitesManager/tests/SitesManager.test.php b/plugins/SitesManager/tests/SitesManager.test.php index 06852d1324..e7b6ecc15a 100644 --- a/plugins/SitesManager/tests/SitesManager.test.php +++ b/plugins/SitesManager/tests/SitesManager.test.php @@ -11,6 +11,11 @@ require_once PIWIK_PATH_TEST_TO_ROOT . '/tests/core/Database.test.php'; class Test_Piwik_SitesManager extends Test_Database { + public function __construct() + { + Piwik_PluginsManager::getInstance()->unloadPlugin('ExampleFeedburner'); + parent::__construct(); + } public function setUp() { parent::setUp(); |