diff options
Diffstat (limited to 'tests/PHPUnit/IntegrationTestCase.php')
-rwxr-xr-x | tests/PHPUnit/IntegrationTestCase.php | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/tests/PHPUnit/IntegrationTestCase.php b/tests/PHPUnit/IntegrationTestCase.php index a9f183652e..cfcf72c581 100755 --- a/tests/PHPUnit/IntegrationTestCase.php +++ b/tests/PHPUnit/IntegrationTestCase.php @@ -17,6 +17,7 @@ use Piwik\Piwik; use Piwik\Common; use Piwik\Access; use Piwik\Option; +use Piwik\Plugins\LanguagesManager\API; use Piwik\ReportRenderer; use Piwik\Site; use Piwik\Tracker\Cache; @@ -196,7 +197,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase // Make sure translations are loaded to check messages in English Translate::getInstance()->reloadLanguage('en'); - Piwik_LanguagesManager_API::getInstance()->setLanguageForUser('superUserLogin', 'en'); + API::getInstance()->setLanguageForUser('superUserLogin', 'en'); // List of Modules, or Module.Method that should not be called as part of the XML output compare // Usually these modules either return random changing data, or are already tested in specific unit tests. @@ -238,7 +239,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase Cache::deleteTrackerCache(); Config::getInstance()->clear(); ArchiveTableCreator::clear(); - Piwik_PDFReports_API::$cache = array(); + \Piwik\Plugins\PDFReports\API::$cache = array(); \Zend_Registry::_unsetInstance(); $_GET = $_REQUEST = array(); @@ -361,7 +362,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase 'otherRequestParameters' => array( 'idReport' => 1, 'reportFormat' => ReportRenderer::HTML_FORMAT, - 'outputType' => Piwik_PDFReports_API::OUTPUT_RETURN + 'outputType' => \Piwik\Plugins\PDFReports\API::OUTPUT_RETURN ) ) ) @@ -384,7 +385,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase 'otherRequestParameters' => array( 'idReport' => 1, 'reportFormat' => ReportRenderer::PDF_FORMAT, - 'outputType' => Piwik_PDFReports_API::OUTPUT_RETURN + 'outputType' => \Piwik\Plugins\PDFReports\API::OUTPUT_RETURN ) ) ) @@ -404,7 +405,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase 'fileExtension' => 'sms.txt', 'otherRequestParameters' => array( 'idReport' => 2, - 'outputType' => Piwik_PDFReports_API::OUTPUT_RETURN + 'outputType' => \Piwik\Plugins\PDFReports\API::OUTPUT_RETURN ) ) ) @@ -423,7 +424,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase 'fileExtension' => 'sms.txt', 'otherRequestParameters' => array( 'idReport' => 3, - 'outputType' => Piwik_PDFReports_API::OUTPUT_RETURN + 'outputType' => \Piwik\Plugins\PDFReports\API::OUTPUT_RETURN ) ) ) @@ -444,7 +445,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase 'otherRequestParameters' => array( 'idReport' => 4, 'reportFormat' => ReportRenderer::HTML_FORMAT, - 'outputType' => Piwik_PDFReports_API::OUTPUT_RETURN + 'outputType' => \Piwik\Plugins\PDFReports\API::OUTPUT_RETURN ) ) ) @@ -463,7 +464,7 @@ abstract class IntegrationTestCase extends PHPUnit_Framework_TestCase 'fileExtension' => 'html', 'otherRequestParameters' => array( 'idReport' => 5, - 'outputType' => Piwik_PDFReports_API::OUTPUT_RETURN + 'outputType' => \Piwik\Plugins\PDFReports\API::OUTPUT_RETURN ) ) ) |