diff options
Diffstat (limited to 'tests/PHPUnit/Integration/ApiGetReportMetadataTest.php')
-rwxr-xr-x | tests/PHPUnit/Integration/ApiGetReportMetadataTest.php | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/tests/PHPUnit/Integration/ApiGetReportMetadataTest.php b/tests/PHPUnit/Integration/ApiGetReportMetadataTest.php index 811e023bf3..cc0f41eede 100755 --- a/tests/PHPUnit/Integration/ApiGetReportMetadataTest.php +++ b/tests/PHPUnit/Integration/ApiGetReportMetadataTest.php @@ -7,13 +7,13 @@ */ /** - * This tests the output of the API plugin API + * This tests the output of the API plugin API * It will return metadata about all API reports from all plugins * as well as the data itself, pre-processed and ready to be displayed */ class Test_Piwik_Integration_ApiGetReportMetadata extends IntegrationTestCase { - public static $fixture = null; // initialized below class definition + public static $fixture = null; // initialized below class definition public function setUp() { @@ -40,35 +40,35 @@ class Test_Piwik_Integration_ApiGetReportMetadata extends IntegrationTestCase public function getApiForTesting() { - $idSite = self::$fixture->idSite; - $dateTime = self::$fixture->dateTime; - + $idSite = self::$fixture->idSite; + $dateTime = self::$fixture->dateTime; + return array( array('API', array('idSite' => $idSite, 'date' => $dateTime)), - - // test w/ hideMetricsDocs=true - array('API.getMetadata', array('idSite' => $idSite, 'date' => $dateTime, - 'apiModule' => 'Actions', 'apiAction' => 'get', - 'testSuffix' => '_hideMetricsDoc', - 'otherRequestParameters' => array('hideMetricsDoc' => 1)) ), - array('API.getProcessedReport', array('idSite' => $idSite, 'date' => $dateTime, - 'apiModule' => 'Actions', 'apiAction' => 'get', - 'testSuffix' => '_hideMetricsDoc', - 'otherRequestParameters' => array('hideMetricsDoc' => 1)) ), + + // test w/ hideMetricsDocs=true + array('API.getMetadata', array('idSite' => $idSite, 'date' => $dateTime, + 'apiModule' => 'Actions', 'apiAction' => 'get', + 'testSuffix' => '_hideMetricsDoc', + 'otherRequestParameters' => array('hideMetricsDoc' => 1))), + array('API.getProcessedReport', array('idSite' => $idSite, 'date' => $dateTime, + 'apiModule' => 'Actions', 'apiAction' => 'get', + 'testSuffix' => '_hideMetricsDoc', + 'otherRequestParameters' => array('hideMetricsDoc' => 1))), // Test w/ showRawMetrics=true - array('API.getProcessedReport', array('idSite' => $idSite, 'date' => $dateTime, - 'apiModule' => 'UserCountry', 'apiAction' => 'getCountry', - 'testSuffix' => '_showRawMetrics', - 'otherRequestParameters' => array('showRawMetrics' => 1)) ), + array('API.getProcessedReport', array('idSite' => $idSite, 'date' => $dateTime, + 'apiModule' => 'UserCountry', 'apiAction' => 'getCountry', + 'testSuffix' => '_showRawMetrics', + 'otherRequestParameters' => array('showRawMetrics' => 1))), // Test w/ showRawMetrics=true - array('Actions.getPageTitles', array('idSite' => $idSite, 'date' => $dateTime, - 'testSuffix' => '_pageTitleZeroString') ), + array('Actions.getPageTitles', array('idSite' => $idSite, 'date' => $dateTime, + 'testSuffix' => '_pageTitleZeroString')), // test php renderer w/ array data - array('API.getDefaultMetricTranslations', array('idSite' => $idSite, 'date' => $dateTime, - 'format' => 'php', 'testSuffix' => '_phpRenderer')), + array('API.getDefaultMetricTranslations', array('idSite' => $idSite, 'date' => $dateTime, + 'format' => 'php', 'testSuffix' => '_phpRenderer')), ); } |