diff --git a/tests/System/APITest.php b/tests/System/APITest.php index 907e7a0..efc51af 100644 --- a/tests/System/APITest.php +++ b/tests/System/APITest.php @@ -69,8 +69,8 @@ public function test_getTranslatableTypes($api) $this->clearCaches(); } - $apiOutputIsMissingMetricTypes = version_compare(Version::VERSION, '5.2.0-b6', '<'); - $testSuffix = 'API.getReportMetadata' == $api && $apiOutputIsMissingMetricTypes ? '_Old' : ''; + $apiOutputIsMissingMetricChanges = version_compare(Version::VERSION, '5.2.0-b6', '<'); + $testSuffix = 'API.getReportMetadata' == $api && $apiOutputIsMissingMetricChanges ? '_Old' : ''; $testSuffix = in_array($api, ['API.getReportPagesMetadata', 'API.getWidgetMetadata']) && version_compare(Version::VERSION, '5.0.0-rc5', '<=') ? '_Old' : $testSuffix; $this->runAnyApiTest($api, '', $params, array('testSuffix' => $testSuffix, 'xmlFieldsToRemove' => array('imageGraphUrl', 'imageGraphEvolutionUrl'))); @@ -96,8 +96,6 @@ public function test_getTranslatableTypes_withCustomReports($api) return; } - $apiOutputIsMissingMetricTypes = version_compare(Version::VERSION, '4.13.4-b1', '<'); - $this->clearCaches(); $this->makeSureToLoadCustomReports(); @@ -107,7 +105,7 @@ public function test_getTranslatableTypes_withCustomReports($api) 'period' => 'day', ); - $testSuffix = 'withCustomReports' . ('API.getReportMetadata' == $api && $apiOutputIsMissingMetricTypes ? '_Old' : ''); + $testSuffix = 'withCustomReports'; $this->runAnyApiTest($api, '', $params, array('testSuffix' => $testSuffix, 'xmlFieldsToRemove' => array('imageGraphUrl', 'imageGraphEvolutionUrl'))); } diff --git a/tests/System/expected/test___API.getReportMetadata_.xml b/tests/System/expected/test___API.getReportMetadata_.xml index 4b029b0..c6908bf 100644 --- a/tests/System/expected/test___API.getReportMetadata_.xml +++ b/tests/System/expected/test___API.getReportMetadata_.xml @@ -2862,7 +2862,6 @@ Actions per Visit Avg. Time on Website Bounce Rate - Conversion Rate number @@ -2875,6 +2874,19 @@ percent getUrlsForSocial + + Conversions + Revenue + + + Revenue per Visit + + + money + number + percent + money + Referrers_getSocials diff --git a/tests/System/expected/test___API.getReportPagesMetadata_.xml b/tests/System/expected/test___API.getReportPagesMetadata_.xml index 40d11f9..dd6dede 100644 --- a/tests/System/expected/test___API.getReportPagesMetadata_.xml +++ b/tests/System/expected/test___API.getReportPagesMetadata_.xml @@ -2720,6 +2720,38 @@ tableGoals 1 + + Social Networks + + Goals by Referrers + Goals by Referrers + 99 + + + + + + Goals by Referrers + Goals by Referrers + 99 + + + Referrers + getSocials + 5 + + 1 + tableGoals + Referrers + getSocials + 1 + 0 + + widgetReferrersgetSocialsforceView1viewDataTabletableGoalsdocumentationForGoalsPage1idGoal0 + 0 + tableGoals + 1 + Campaigns @@ -2738,7 +2770,7 @@ Referrers getCampaigns - 5 + 6 1 tableGoals @@ -3798,6 +3830,39 @@ tableGoals 1 + + Social Networks + + Sales by Referrers + Sales by Referrers + 99 + + + + + + Sales by Referrers + Sales by Referrers + 99 + + + Referrers + getSocials + 5 + + 1 + tableGoals + Referrers + getSocials + 1 + ecommerceOrder + visitEcommerceStatus==ordered + + widgetReferrersgetSocialsforceView1viewDataTabletableGoalsdocumentationForGoalsPage1idGoalecommerceOrdersegmented_visitor_log_segment_suffixvisitEcommerceStatus3D3Dordered + 0 + tableGoals + 1 + Campaigns @@ -3816,7 +3881,7 @@ Referrers getCampaigns - 5 + 6 1 tableGoals diff --git a/tests/System/expected/test___API.getWidgetMetadata_.xml b/tests/System/expected/test___API.getWidgetMetadata_.xml index 9c77a27..8ab6187 100644 --- a/tests/System/expected/test___API.getWidgetMetadata_.xml +++ b/tests/System/expected/test___API.getWidgetMetadata_.xml @@ -2696,7 +2696,7 @@ Referrers getCampaigns - 5 + 6 1 tableGoals @@ -2810,6 +2810,39 @@ tableGoals 1 + + Sales by Referrers: Social Networks + + Goals_Ecommerce + Ecommerce + 20 + icon-reporting-ecommerce + + + + + Ecommerce_Sales + Sales + 15 + <p>This section contains an extensive collection of reports to help you analyse the different conditions that most commonly lead to sales, such as the traffic and campaign sources, user time and location and devices used to access them.</p><p>You can also learn exactly how revenue is associated with each dimension, such as specific traffic types or tracked campaigns.</p> + + Referrers + getSocials + 5 + + 1 + tableGoals + Referrers + getSocials + 1 + ecommerceOrder + visitEcommerceStatus==ordered + + widgetReferrersgetSocialsforceView1viewDataTabletableGoalsdocumentationForGoalsPage1idGoalecommerceOrdersegmented_visitor_log_segment_suffixvisitEcommerceStatus3D3Dordered + 0 + tableGoals + 1 + Sales by Referrers: Websites @@ -3127,32 +3160,4 @@ - - Pie graph - - ExampleUI_UiFramework - UI Framework - 90 - - - - - - Pie graph - Pie graph - 99 - - - ExampleUI - getPlanetRatios - 212 - - ExampleUI - getPlanetRatios - - widgetExampleUIgetPlanetRatios - 0 - graphPie - 1 - \ No newline at end of file