Skip to content

Commit

Permalink
Merge pull request #65 from innocraft/update-broken-builds
Browse files Browse the repository at this point in the history
Updating expected data after core change
  • Loading branch information
snake14 authored Nov 17, 2024
2 parents da72bc1 + 7a2aec5 commit e6fd842
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/System/APITest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function test_getTranslatableTypes($api)
$this->clearCaches();
}

$apiOutputIsMissingMetricTypes = version_compare(Version::VERSION, '5.0.0-b1', '<=');
$apiOutputIsMissingMetricTypes = version_compare(Version::VERSION, '5.2.0-b6', '<');
$testSuffix = 'API.getReportMetadata' == $api && $apiOutputIsMissingMetricTypes ? '_Old' : '';
$testSuffix = in_array($api, ['API.getReportPagesMetadata', 'API.getWidgetMetadata']) && version_compare(Version::VERSION, '5.0.0-rc5', '<=') ? '_Old' : $testSuffix;

Expand Down
16 changes: 16 additions & 0 deletions tests/System/expected/test___API.getReportMetadata_.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<nb_visits>Visits</nb_visits>
<nb_actions>Actions</nb_actions>
<nb_pageviews>Pageviews</nb_pageviews>
<hits>Hits</hits>
<revenue>Revenue</revenue>
<nb_conversions>Conversions</nb_conversions>
<orders>Ecommerce Orders</orders>
Expand All @@ -20,11 +21,13 @@
<nb_visits>If a visitor comes to your website for the first time or if they visit a page more than 30 minutes after their last page view, this will be recorded as a new visit.</nb_visits>
<nb_actions>The number of actions performed by your visitors. Actions can be page views, internal site searches, downloads or outlinks.</nb_actions>
<nb_pageviews>The number of times this page was visited.</nb_pageviews>
<hits>The total count of all interactions recorded on your website, including page views, link clicks, downloads, and events.</hits>
</metricsDocumentation>
<processedMetrics>
<visits_evolution>Visits Evolution</visits_evolution>
<actions_evolution>Actions Evolution</actions_evolution>
<pageviews_evolution>Pageviews Evolution</pageviews_evolution>
<hits_evolution>Hits Evolution</hits_evolution>
<revenue_evolution>Revenue Evolution</revenue_evolution>
<nb_conversions_evolution>Conversions Evolution</nb_conversions_evolution>
<orders_evolution>Ecommerce Orders Evolution</orders_evolution>
Expand All @@ -34,13 +37,15 @@
<nb_visits>number</nb_visits>
<nb_actions>number</nb_actions>
<nb_pageviews>number</nb_pageviews>
<hits>number</hits>
<revenue>money</revenue>
<nb_conversions>number</nb_conversions>
<orders>number</orders>
<ecommerce_revenue>money</ecommerce_revenue>
<visits_evolution>percent</visits_evolution>
<actions_evolution>percent</actions_evolution>
<pageviews_evolution>percent</pageviews_evolution>
<hits_evolution>percent</hits_evolution>
<revenue_evolution>percent</revenue_evolution>
<nb_conversions_evolution>percent</nb_conversions_evolution>
<orders_evolution>percent</orders_evolution>
Expand All @@ -61,6 +66,7 @@
<nb_visits>Visits</nb_visits>
<nb_actions>Actions</nb_actions>
<nb_pageviews>Pageviews</nb_pageviews>
<hits>Hits</hits>
<revenue>Revenue</revenue>
<nb_conversions>Conversions</nb_conversions>
<orders>Ecommerce Orders</orders>
Expand All @@ -70,11 +76,13 @@
<nb_visits>If a visitor comes to your website for the first time or if they visit a page more than 30 minutes after their last page view, this will be recorded as a new visit.</nb_visits>
<nb_actions>The number of actions performed by your visitors. Actions can be page views, internal site searches, downloads or outlinks.</nb_actions>
<nb_pageviews>The number of times this page was visited.</nb_pageviews>
<hits>The total count of all interactions recorded on your website, including page views, link clicks, downloads, and events.</hits>
</metricsDocumentation>
<processedMetrics>
<visits_evolution>Visits Evolution</visits_evolution>
<actions_evolution>Actions Evolution</actions_evolution>
<pageviews_evolution>Pageviews Evolution</pageviews_evolution>
<hits_evolution>Hits Evolution</hits_evolution>
<revenue_evolution>Revenue Evolution</revenue_evolution>
<nb_conversions_evolution>Conversions Evolution</nb_conversions_evolution>
<orders_evolution>Ecommerce Orders Evolution</orders_evolution>
Expand All @@ -84,13 +92,15 @@
<nb_visits>number</nb_visits>
<nb_actions>number</nb_actions>
<nb_pageviews>number</nb_pageviews>
<hits>number</hits>
<revenue>money</revenue>
<nb_conversions>number</nb_conversions>
<orders>number</orders>
<ecommerce_revenue>money</ecommerce_revenue>
<visits_evolution>percent</visits_evolution>
<actions_evolution>percent</actions_evolution>
<pageviews_evolution>percent</pageviews_evolution>
<hits_evolution>percent</hits_evolution>
<revenue_evolution>percent</revenue_evolution>
<nb_conversions_evolution>percent</nb_conversions_evolution>
<orders_evolution>percent</orders_evolution>
Expand Down Expand Up @@ -1364,6 +1374,7 @@
<nb_uniq_outlinks>Unique Outlinks</nb_uniq_outlinks>
<nb_searches>Searches</nb_searches>
<nb_keywords>Unique Keywords</nb_keywords>
<hits>Hits</hits>
</metrics>
<metricsDocumentation>
<nb_pageviews>The number of times this page was visited.</nb_pageviews>
Expand All @@ -1373,6 +1384,7 @@
<nb_outlinks>The number of times this link was clicked.</nb_outlinks>
<nb_uniq_outlinks>The number of visits that involved a click on this link. If a link was clicked multiple times during one visit, it is only counted once.</nb_uniq_outlinks>
<nb_searches>The number of visits that searched for this keyword on your website's search engine.</nb_searches>
<hits>The total count of all interactions recorded on your website, including page views, link clicks, downloads, and events.</hits>
<avg_time_generation>The average time it took to generate the page. This metric includes the time it took the server to generate the web page, plus the time it took for the visitor to download the response from the server. A lower 'Avg. generation time' means a faster website for your visitors!</avg_time_generation>
</metricsDocumentation>
<processedMetrics>
Expand All @@ -1387,6 +1399,7 @@
<nb_uniq_outlinks>number</nb_uniq_outlinks>
<nb_searches>number</nb_searches>
<nb_keywords>number</nb_keywords>
<hits>number</hits>
<avg_time_generation>duration_s</avg_time_generation>
</metricTypes>

Expand Down Expand Up @@ -3479,6 +3492,7 @@
<nb_uniq_outlinks>Unique Outlinks</nb_uniq_outlinks>
<nb_searches>Searches</nb_searches>
<nb_keywords>Unique Keywords</nb_keywords>
<hits>Hits</hits>
<Referrers_visitorsFromSearchEngines>Visitors from Search Engines</Referrers_visitorsFromSearchEngines>
<Referrers_visitorsFromSearchEngines_percent>Percent of Visitors from Search Engines</Referrers_visitorsFromSearchEngines_percent>
<Referrers_visitorsFromSocialNetworks>Visitors from Social Networks</Referrers_visitorsFromSocialNetworks>
Expand Down Expand Up @@ -3531,6 +3545,7 @@
<nb_outlinks>The number of times this link was clicked.</nb_outlinks>
<nb_uniq_outlinks>The number of visits that involved a click on this link. If a link was clicked multiple times during one visit, it is only counted once.</nb_uniq_outlinks>
<nb_searches>The number of visits that searched for this keyword on your website's search engine.</nb_searches>
<hits>The total count of all interactions recorded on your website, including page views, link clicks, downloads, and events.</hits>
<nb_uniq_visitors>The number of unduplicated visitors coming to your website. Every user is only counted once, even if they visit the website multiple times a day.</nb_uniq_visitors>
<nb_visits>If a visitor comes to your website for the first time or if they visit a page more than 30 minutes after their last page view, this will be recorded as a new visit.</nb_visits>
<nb_users>The number of users logged in your website. It is the number of unique active users that have a User ID set (via the Tracking code function 'setUserId').</nb_users>
Expand Down Expand Up @@ -3580,6 +3595,7 @@
<nb_uniq_outlinks>number</nb_uniq_outlinks>
<nb_searches>number</nb_searches>
<nb_keywords>number</nb_keywords>
<hits>number</hits>
<Referrers_visitorsFromSearchEngines>number</Referrers_visitorsFromSearchEngines>
<Referrers_visitorsFromSearchEngines_percent>percent</Referrers_visitorsFromSearchEngines_percent>
<Referrers_visitorsFromSocialNetworks>number</Referrers_visitorsFromSocialNetworks>
Expand Down

0 comments on commit e6fd842

Please sign in to comment.