From 89fe7445905535b82f23852df318259360849682 Mon Sep 17 00:00:00 2001
From: Thomas Steur <thomas.steur@googlemail.com>
Date: Fri, 27 Jun 2014 07:16:31 +0200
Subject: [PATCH] should fix some tests since we added some example reports and
 dimensions

---
 ...ints__API.getSuggestedValuesForSegment.xml |  2 ++
 ...ords__API.getSuggestedValuesForSegment.xml |  2 ++
 ...rtLogs__ExamplePlugin.getExampleReport.xml |  6 +++++
 ...Visits__ExamplePlugin.getExampleReport.xml |  6 +++++
 ...ortMetadata__API.getReportMetadata_day.xml | 27 +++++++++++++++++++
 ...eportMetadata__API.getSegmentsMetadata.xml | 14 ++++++++++
 ...IsLast__ExamplePlugin.getExampleReport.xml |  6 +++++
 ...oVisit__ExamplePlugin.getExampleReport.xml |  6 +++++
 8 files changed, 69 insertions(+)
 create mode 100644 tests/PHPUnit/Integration/expected/test_AutoSuggestAPITest_achievementPoints__API.getSuggestedValuesForSegment.xml
 create mode 100644 tests/PHPUnit/Integration/expected/test_AutoSuggestAPITest_keywords__API.getSuggestedValuesForSegment.xml
 create mode 100644 tests/PHPUnit/Integration/expected/test_ImportLogs__ExamplePlugin.getExampleReport.xml
 create mode 100644 tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits__ExamplePlugin.getExampleReport.xml
 create mode 100644 tests/PHPUnit/Integration/expected/test_noVisit_PeriodIsLast__ExamplePlugin.getExampleReport.xml
 create mode 100644 tests/PHPUnit/Integration/expected/test_noVisit__ExamplePlugin.getExampleReport.xml

diff --git a/tests/PHPUnit/Integration/expected/test_AutoSuggestAPITest_achievementPoints__API.getSuggestedValuesForSegment.xml b/tests/PHPUnit/Integration/expected/test_AutoSuggestAPITest_achievementPoints__API.getSuggestedValuesForSegment.xml
new file mode 100644
index 0000000000..c234bed59e
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_AutoSuggestAPITest_achievementPoints__API.getSuggestedValuesForSegment.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<result />
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_AutoSuggestAPITest_keywords__API.getSuggestedValuesForSegment.xml b/tests/PHPUnit/Integration/expected/test_AutoSuggestAPITest_keywords__API.getSuggestedValuesForSegment.xml
new file mode 100644
index 0000000000..c234bed59e
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_AutoSuggestAPITest_keywords__API.getSuggestedValuesForSegment.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<result />
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_ImportLogs__ExamplePlugin.getExampleReport.xml b/tests/PHPUnit/Integration/expected/test_ImportLogs__ExamplePlugin.getExampleReport.xml
new file mode 100644
index 0000000000..1b2fed39f9
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_ImportLogs__ExamplePlugin.getExampleReport.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<result>
+	<row>
+		<nb_visits>5</nb_visits>
+	</row>
+</result>
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits__ExamplePlugin.getExampleReport.xml b/tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits__ExamplePlugin.getExampleReport.xml
new file mode 100644
index 0000000000..1b2fed39f9
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits__ExamplePlugin.getExampleReport.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<result>
+	<row>
+		<nb_visits>5</nb_visits>
+	</row>
+</result>
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata__API.getReportMetadata_day.xml b/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata__API.getReportMetadata_day.xml
index c03a680ec7..62ed8fedd7 100644
--- a/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata__API.getReportMetadata_day.xml
+++ b/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata__API.getReportMetadata_day.xml
@@ -1,5 +1,32 @@
 <?xml version="1.0" encoding="utf-8" ?>
 <result>
+	<row>
+		<category>ExampleCategory</category>
+		<name>ExampleReportName</name>
+		<module>ExamplePlugin</module>
+		<action>getExampleReport</action>
+		<dimension>Exit Page URL</dimension>
+		<documentation>ExampleReportDocumentation</documentation>
+		<metrics>
+			<nb_visits>Visits</nb_visits>
+			<nb_uniq_visitors>Unique visitors</nb_uniq_visitors>
+			<nb_actions>Actions</nb_actions>
+		</metrics>
+		<metricsDocumentation>
+			<nb_visits>If a visitor comes to your website for the first time or if he visits a page more than 30 minutes after his last page view, this will be recorded as a new visit.</nb_visits>
+			<nb_uniq_visitors>The number of unduplicated visitors coming to your website. Every user is only counted once, even if he visits the website multiple times a day.</nb_uniq_visitors>
+			<nb_actions>The number of actions performed by your visitors. Actions can be page views, internal site searches, downloads or outlinks.</nb_actions>
+		</metricsDocumentation>
+		<processedMetrics>
+			<nb_actions_per_visit>Actions per Visit</nb_actions_per_visit>
+			<avg_time_on_site>Avg. Time on Website</avg_time_on_site>
+			<bounce_rate>Bounce Rate</bounce_rate>
+			<conversion_rate>Conversion Rate</conversion_rate>
+		</processedMetrics>
+		<imageGraphUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=ExamplePlugin&amp;apiAction=getExampleReport&amp;period=day&amp;date=2009-01-04</imageGraphUrl>
+		<imageGraphEvolutionUrl>index.php?module=API&amp;method=ImageGraph.get&amp;idSite=1&amp;apiModule=ExamplePlugin&amp;apiAction=getExampleReport&amp;period=day&amp;date=2008-12-06,2009-01-04</imageGraphEvolutionUrl>
+		<uniqueId>ExamplePlugin_getExampleReport</uniqueId>
+	</row>
 	<row>
 		<category>All Websites</category>
 		<name>All Websites dashboard</name>
diff --git a/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata__API.getSegmentsMetadata.xml b/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata__API.getSegmentsMetadata.xml
index 19aefaace8..1102d97a88 100644
--- a/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata__API.getSegmentsMetadata.xml
+++ b/tests/PHPUnit/Integration/expected/test_apiGetReportMetadata__API.getSegmentsMetadata.xml
@@ -246,6 +246,13 @@
 		<name>Event Name</name>
 		<segment>eventName</segment>
 	</row>
+	<row>
+		<type>dimension</type>
+		<category>Enter Segment Category Name</category>
+		<name>ExamplePlugin_DimensionName</name>
+		<segment>achievementPoints</segment>
+		<acceptedValues>Here you should explain which values are accepted/useful: Any number, for instance 1, 2, 3 , 99</acceptedValues>
+	</row>
 	<row>
 		<type>dimension</type>
 		<category>Custom Variables</category>
@@ -378,6 +385,13 @@
 		<name>Entry Page title</name>
 		<segment>entryPageTitle</segment>
 	</row>
+	<row>
+		<type>dimension</type>
+		<category>Actions</category>
+		<name>ExamplePlugin_DimensionName</name>
+		<segment>keywords</segment>
+		<acceptedValues>Here you should explain which values are accepted/useful: Any word, for instance MyKeyword1, MyKeyword2</acceptedValues>
+	</row>
 	<row>
 		<type>dimension</type>
 		<category>Actions</category>
diff --git a/tests/PHPUnit/Integration/expected/test_noVisit_PeriodIsLast__ExamplePlugin.getExampleReport.xml b/tests/PHPUnit/Integration/expected/test_noVisit_PeriodIsLast__ExamplePlugin.getExampleReport.xml
new file mode 100644
index 0000000000..1b2fed39f9
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_noVisit_PeriodIsLast__ExamplePlugin.getExampleReport.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<result>
+	<row>
+		<nb_visits>5</nb_visits>
+	</row>
+</result>
\ No newline at end of file
diff --git a/tests/PHPUnit/Integration/expected/test_noVisit__ExamplePlugin.getExampleReport.xml b/tests/PHPUnit/Integration/expected/test_noVisit__ExamplePlugin.getExampleReport.xml
new file mode 100644
index 0000000000..1b2fed39f9
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_noVisit__ExamplePlugin.getExampleReport.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<result>
+	<row>
+		<nb_visits>5</nb_visits>
+	</row>
+</result>
\ No newline at end of file
-- 
GitLab