diff options
author | robocoder <anthon.pang@gmail.com> | 2010-09-13 05:46:21 +0400 |
---|---|---|
committer | robocoder <anthon.pang@gmail.com> | 2010-09-13 05:46:21 +0400 |
commit | 5c5327bb30ebdf86036dcafb720e20f1b1c55423 (patch) | |
tree | 5b2fe55c01b53290d37a4aae00e7deacda49a22c /plugins/ExampleAPI | |
parent | e1b04241521f84513471da61c2fbcc8f77b130d2 (diff) |
tweaking all the unit tests to also run from the CLI, e.g.,
find plugins -name '*.test.php' -exec php {} \;
git-svn-id: http://dev.piwik.org/svn/trunk@3143 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'plugins/ExampleAPI')
-rw-r--r-- | plugins/ExampleAPI/tests/Integration.test.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/ExampleAPI/tests/Integration.test.php b/plugins/ExampleAPI/tests/Integration.test.php index ca84de2562..7bf7e1d8dd 100644 --- a/plugins/ExampleAPI/tests/Integration.test.php +++ b/plugins/ExampleAPI/tests/Integration.test.php @@ -1,10 +1,7 @@ <?php -if(!defined("PIWIK_PATH_TEST_TO_ROOT")) { - define('PIWIK_PATH_TEST_TO_ROOT', getcwd().'/../../..'); -} if(!defined('PIWIK_CONFIG_TEST_INCLUDED')) { - require_once PIWIK_PATH_TEST_TO_ROOT . "/tests/config_test.php"; + require_once dirname(__FILE__)."/../../../tests/config_test.php"; } require_once PIWIK_INCLUDE_PATH . '/tests/integration/Integration.php'; @@ -37,4 +34,4 @@ class Test_Piwik_Integration_ExampleAPI extends Test_Integration $renderers = Piwik_DataTable_Renderer::getRenderers(); $this->callGetApiCompareOutput(__FUNCTION__, $renderers); } -}
\ No newline at end of file +} |