Skip to content
Extraits de code Groupes Projets
Valider 139be3af rédigé par mattab's avatar mattab
Parcourir les fichiers

Adding new test with page name "0"

Which I think should probably work, but currently shows "Page name not defined"
parent bca080e3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -51,7 +51,7 @@ class Test_Piwik_Fixture_ThreeGoalsOnePageview extends Test_Piwik_BaseFixture
// Record 1st page view
$t->setUrl('http://example.org/index.htm');
self::checkResponse($t->doTrackPageView('incredible title!'));
self::checkResponse($t->doTrackPageView('0'));
$t->setForceVisitDateTime(Piwik_Date::factory($this->dateTime)->addHour(0.3)->getDatetime());
self::checkResponse($t->doTrackGoal($this->idGoal3, $revenue = 42.256));
......
......@@ -56,13 +56,17 @@ class Test_Piwik_Integration_ApiGetReportMetadata extends IntegrationTestCase
'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)) ),
// test php renderer w/ array data
// Test w/ showRawMetrics=true
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') ),
// test php renderer w/ array data
array('API.getDefaultMetricTranslations', array('idSite' => $idSite, 'date' => $dateTime,
'format' => 'php', 'testSuffix' => '_phpRenderer')),
);
......
<?xml version="1.0" encoding="utf-8" ?>
<result>
<row>
<label>Page Name not defined</label>
<nb_visits>1</nb_visits>
<nb_uniq_visitors>1</nb_uniq_visitors>
<nb_hits>1</nb_hits>
<sum_time_spent>0</sum_time_spent>
<avg_time_on_page>0</avg_time_on_page>
<bounce_rate>0%</bounce_rate>
<exit_rate>0%</exit_rate>
</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.
Veuillez vous inscrire ou vous pour commenter