Skip to content
Extraits de code Groupes Projets
Valider 83d0916c rédigé par benakamoorthi's avatar benakamoorthi
Parcourir les fichiers

Refs #3300, test hideMetricsDoc w/ getMetadata instead of getReportMetadata.

git-svn-id: http://dev.piwik.org/svn/trunk@6684 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 6c5c2844
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -70,9 +70,10 @@ class Test_Piwik_Integration_ApiGetReportMetadata extends IntegrationTestCase
array('API', array('idSite' => self::$idSite, 'date' => self::$dateTime)),
// test w/ hideMetricsDocs=true
array('API.getReportMetadata', array('idSite' => self::$idSite, 'date' => self::$dateTime,
'testSuffix' => '_hideMetricsDoc',
'otherRequestParameters' => array('hideMetricsDoc' => 1)) ),
array('API.getMetadata', array('idSite' => self::$idSite, 'date' => self::$dateTime,
'apiModule' => 'Actions', 'apiAction' => 'get',
'testSuffix' => '_hideMetricsDoc',
'otherRequestParameters' => array('hideMetricsDoc' => 1)) ),
array('API.getProcessedReport', array('idSite' => self::$idSite, 'date' => self::$dateTime,
'apiModule' => 'Actions', 'apiAction' => 'get',
'testSuffix' => '_hideMetricsDoc',
......
......@@ -25,9 +25,10 @@ class Test_Piwik_Integration_ApiGetReportMetadata extends Test_Integration_Facad
array('API', array('idSite' => $this->idSite, 'date' => $this->dateTime)),
// test w/ hideMetricsDocs=true
array('API.getReportMetadata', array('idSite' => $this->idSite, 'date' => $this->dateTime,
'testSuffix' => '_hideMetricsDoc',
'otherRequestParameters' => array('hideMetricsDoc' => 1)) ),
array('API.getMetadata', array('idSite' => $this->idSite, 'date' => $this->dateTime,
'apiModule' => 'Actions', 'apiAction' => 'get',
'testSuffix' => '_hideMetricsDoc',
'otherRequestParameters' => array('hideMetricsDoc' => 1)) ),
array('API.getProcessedReport', array('idSite' => $this->idSite, 'date' => $this->dateTime,
'apiModule' => 'Actions', 'apiAction' => 'get',
'testSuffix' => '_hideMetricsDoc',
......
<?xml version="1.0" encoding="utf-8" ?>
<result>
<row>
<category>Actions</category>
<name>Actions - Main metrics</name>
<module>Actions</module>
<action>get</action>
<metrics>
<nb_pageviews>Pageviews</nb_pageviews>
<nb_uniq_pageviews>Unique Pageviews</nb_uniq_pageviews>
<nb_downloads>Downloads</nb_downloads>
<nb_uniq_downloads>Unique Downloads</nb_uniq_downloads>
<nb_outlinks>Outlinks</nb_outlinks>
<nb_uniq_outlinks>Unique Outlinks</nb_uniq_outlinks>
</metrics>
<imageGraphUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=Actions&amp;apiAction=get&amp;period=day&amp;date=2008-12-06%2C2009-01-04</imageGraphUrl>
<uniqueId>Actions_get</uniqueId>
</row>
</result>
\ No newline at end of file
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter