From 4e55cd0ee759a73dd3479530ab1500ef2ba16488 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Tue, 19 Jan 2021 04:42:16 +0100 Subject: Ensure metadata is available if page url can't be found (#16920) * Ensure metadata is available if page url can't be found * removes unused method parameters * Adds some RSS tests * Adds tests that throws exception on 4.x-dev --- tests/PHPUnit/System/RssExportTest.php | 110 +++++++++++++++++++++ .../test_rssExport__Actions.getPageUrl_day.rss | 76 ++++++++++++++ .../test_rssExport__Actions.getPageUrl_week.rss | 28 ++++++ .../test_rssExport__Actions.getPageUrls_day.rss | 36 +++++++ .../test_rssExport__VisitsSummary.get_day.rss | 36 +++++++ ...est_rssExport_empty__Actions.getPageUrl_day.rss | 68 +++++++++++++ ...st_rssExport_empty__Actions.getPageUrl_week.rss | 36 +++++++ ...st_rssExport_subdir__Actions.getPageUrl_day.rss | 76 ++++++++++++++ 8 files changed, 466 insertions(+) create mode 100644 tests/PHPUnit/System/RssExportTest.php create mode 100644 tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrl_day.rss create mode 100644 tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrl_week.rss create mode 100644 tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrls_day.rss create mode 100644 tests/PHPUnit/System/expected/test_rssExport__VisitsSummary.get_day.rss create mode 100644 tests/PHPUnit/System/expected/test_rssExport_empty__Actions.getPageUrl_day.rss create mode 100644 tests/PHPUnit/System/expected/test_rssExport_empty__Actions.getPageUrl_week.rss create mode 100644 tests/PHPUnit/System/expected/test_rssExport_subdir__Actions.getPageUrl_day.rss (limited to 'tests') diff --git a/tests/PHPUnit/System/RssExportTest.php b/tests/PHPUnit/System/RssExportTest.php new file mode 100644 index 0000000000..2cf1b9ccf3 --- /dev/null +++ b/tests/PHPUnit/System/RssExportTest.php @@ -0,0 +1,110 @@ +idSite; + + $apiToCall = ['VisitsSummary.get', 'Actions.getPageUrls']; + + return [ + [ + $apiToCall, + [ + 'idSite' => $idSite, + 'period' => 'day', + 'date' => '2010-12-14,2010-12-16', + 'format' => 'rss', + ], + ], + [ + 'Actions.getPageUrl', + [ + 'idSite' => $idSite, + 'period' => ['day', 'week'], + 'date' => '2010-12-14,2010-12-21', + 'format' => 'rss', + 'otherRequestParameters' => [ + 'pageUrl' => '/homepage', + ], + ], + ], + [ + 'Actions.getPageUrl', + [ + 'idSite' => $idSite, + 'period' => 'day', + 'format' => 'rss', + 'date' => '2010-12-14,2010-12-21', + 'otherRequestParameters' => [ + 'pageUrl' => '/sub1/sub2/sub3/index', + ], + 'testSuffix' => '_subdir' + ], + ], + [ + 'Actions.getPageUrl', + [ + 'idSite' => $idSite, + 'period' => 'day', + 'format' => 'rss', + 'otherRequestParameters' => [ + 'pageUrl' => '/page', + 'date' => 'last7', + ], + 'testSuffix' => '_empty' + ], + ], + [ + 'Actions.getPageUrl', + [ + 'idSite' => $idSite, + 'period' => 'week', + 'format' => 'rss', + 'otherRequestParameters' => [ + 'pageUrl' => '/page', + 'date' => 'last3', + ], + 'testSuffix' => '_empty' + ], + ], + ]; + } + + /** + * @dataProvider getApiForTesting + */ + public function testApi($api, $params) + { + Date::$now = Date::factory('2020-10-20 20:10:20')->getTimestamp(); + $this->runApiTests($api, $params); + } + + public static function getOutputPrefix() + { + return 'rssExport'; + } +} + +RssExportTest::$fixture = new VisitsOverSeveralDays(); \ No newline at end of file diff --git a/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrl_day.rss b/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrl_day.rss new file mode 100644 index 0000000000..426221f6f3 --- /dev/null +++ b/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrl_day.rss @@ -0,0 +1,76 @@ + + + + matomo statistics - RSS + https://matomo.org + Matomo RSS feed + Tue, 20 Oct 2020 20:10:20 +0000 + matomo + en + Tue, 20 Oct 2020 20:10:20 +0000 + + Tue, 21 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-21 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-21 + Site AAAAAA on 2010-12-21 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Mon, 20 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-20 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-20 + Site AAAAAA on 2010-12-20 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Sun, 19 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-19 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-19 + Site AAAAAA on 2010-12-19 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Sat, 18 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-18 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-18 + Site AAAAAA on 2010-12-18 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Fri, 17 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-17 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-17 + Site AAAAAA on 2010-12-17 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Thu, 16 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-16 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-16 + Site AAAAAA on 2010-12-16 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Wed, 15 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-15 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-15 + Site AAAAAA on 2010-12-15 + https://matomo.org + <table border=1 width=70%><tr> <td><strong>label</strong></td> <td><strong>nb_visits</strong></td> <td><strong>nb_uniq_visitors</strong></td> <td><strong>nb_hits</strong></td> <td><strong>sum_time_spent</strong></td> <td><strong>sum_bandwidth</strong></td> <td><strong>nb_hits_with_bandwidth</strong></td> <td><strong>min_bandwidth</strong></td> <td><strong>max_bandwidth</strong></td> <td><strong>entry_nb_uniq_visitors</strong></td> <td><strong>entry_nb_visits</strong></td> <td><strong>entry_nb_actions</strong></td> <td><strong>entry_sum_visit_length</strong></td> <td><strong>entry_bounce_count</strong></td> <td><strong>avg_time_on_page</strong></td> <td><strong>bounce_rate</strong></td> <td><strong>exit_rate</strong></td> <td><strong>avg_bandwidth</strong></td></tr><tr> <td>/homepage</td> <td>1</td> <td>1</td> <td>1</td> <td>360</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>1</td> <td>1</td> <td>2</td> <td>361</td> <td>0</td> <td>360</td> <td>0%</td> <td>0%</td> <td>0</td></tr></table> + + + Tue, 14 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-14 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-14 + Site AAAAAA on 2010-12-14 + https://matomo.org + <table border=1 width=70%><tr> <td><strong>label</strong></td> <td><strong>nb_visits</strong></td> <td><strong>nb_uniq_visitors</strong></td> <td><strong>nb_hits</strong></td> <td><strong>sum_time_spent</strong></td> <td><strong>sum_bandwidth</strong></td> <td><strong>nb_hits_with_bandwidth</strong></td> <td><strong>min_bandwidth</strong></td> <td><strong>max_bandwidth</strong></td> <td><strong>entry_nb_uniq_visitors</strong></td> <td><strong>entry_nb_visits</strong></td> <td><strong>entry_nb_actions</strong></td> <td><strong>entry_sum_visit_length</strong></td> <td><strong>entry_bounce_count</strong></td> <td><strong>avg_time_on_page</strong></td> <td><strong>bounce_rate</strong></td> <td><strong>exit_rate</strong></td> <td><strong>avg_bandwidth</strong></td></tr><tr> <td>/homepage</td> <td>1</td> <td>1</td> <td>1</td> <td>360</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>1</td> <td>1</td> <td>2</td> <td>361</td> <td>0</td> <td>360</td> <td>0%</td> <td>0%</td> <td>0</td></tr></table> + + + \ No newline at end of file diff --git a/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrl_week.rss b/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrl_week.rss new file mode 100644 index 0000000000..a883410a8f --- /dev/null +++ b/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrl_week.rss @@ -0,0 +1,28 @@ + + + + matomo statistics - RSS + https://matomo.org + Matomo RSS feed + Tue, 20 Oct 2020 20:10:20 +0000 + matomo + en + Tue, 20 Oct 2020 20:10:20 +0000 + + Mon, 20 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date=2010-12-20 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date=2010-12-20 + Site AAAAAA on 2010-12-20,2010-12-26 + https://matomo.org + <table border=1 width=70%><tr> <td><strong>label</strong></td> <td><strong>nb_visits</strong></td> <td><strong>nb_hits</strong></td> <td><strong>sum_time_spent</strong></td> <td><strong>sum_bandwidth</strong></td> <td><strong>nb_hits_with_bandwidth</strong></td> <td><strong>min_bandwidth</strong></td> <td><strong>max_bandwidth</strong></td> <td><strong>entry_nb_visits</strong></td> <td><strong>entry_nb_actions</strong></td> <td><strong>entry_sum_visit_length</strong></td> <td><strong>entry_bounce_count</strong></td> <td><strong>sum_daily_nb_uniq_visitors</strong></td> <td><strong>sum_daily_entry_nb_uniq_visitors</strong></td> <td><strong>avg_time_on_page</strong></td> <td><strong>bounce_rate</strong></td> <td><strong>exit_rate</strong></td> <td><strong>avg_bandwidth</strong></td></tr><tr> <td>/homepage</td> <td>1</td> <td>1</td> <td>360</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>1</td> <td>2</td> <td>361</td> <td>0</td> <td>1</td> <td>1</td> <td>360</td> <td>0%</td> <td>0%</td> <td>0</td></tr></table> + + + Mon, 13 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date=2010-12-13 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date=2010-12-13 + Site AAAAAA on 2010-12-13,2010-12-19 + https://matomo.org + <table border=1 width=70%><tr> <td><strong>label</strong></td> <td><strong>nb_visits</strong></td> <td><strong>nb_hits</strong></td> <td><strong>sum_time_spent</strong></td> <td><strong>sum_bandwidth</strong></td> <td><strong>nb_hits_with_bandwidth</strong></td> <td><strong>min_bandwidth</strong></td> <td><strong>max_bandwidth</strong></td> <td><strong>entry_nb_visits</strong></td> <td><strong>entry_nb_actions</strong></td> <td><strong>entry_sum_visit_length</strong></td> <td><strong>entry_bounce_count</strong></td> <td><strong>sum_daily_nb_uniq_visitors</strong></td> <td><strong>sum_daily_entry_nb_uniq_visitors</strong></td> <td><strong>avg_time_on_page</strong></td> <td><strong>bounce_rate</strong></td> <td><strong>exit_rate</strong></td> <td><strong>avg_bandwidth</strong></td></tr><tr> <td>/homepage</td> <td>2</td> <td>2</td> <td>720</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>2</td> <td>4</td> <td>722</td> <td>0</td> <td>2</td> <td>2</td> <td>360</td> <td>0%</td> <td>0%</td> <td>0</td></tr></table> + + + \ No newline at end of file diff --git a/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrls_day.rss b/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrls_day.rss new file mode 100644 index 0000000000..aa5cbd1d0e --- /dev/null +++ b/tests/PHPUnit/System/expected/test_rssExport__Actions.getPageUrls_day.rss @@ -0,0 +1,36 @@ + + + + matomo statistics - RSS + https://matomo.org + Matomo RSS feed + Tue, 20 Oct 2020 20:10:20 +0000 + matomo + en + Tue, 20 Oct 2020 20:10:20 +0000 + + Thu, 16 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-16 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-16 + Site AAAAAA on 2010-12-16 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Wed, 15 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-15 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-15 + Site AAAAAA on 2010-12-15 + https://matomo.org + <table border=1 width=70%><tr> <td><strong>label</strong></td> <td><strong>nb_visits</strong></td> <td><strong>nb_uniq_visitors</strong></td> <td><strong>nb_hits</strong></td> <td><strong>sum_time_spent</strong></td> <td><strong>sum_bandwidth</strong></td> <td><strong>nb_hits_with_bandwidth</strong></td> <td><strong>min_bandwidth</strong></td> <td><strong>max_bandwidth</strong></td> <td><strong>entry_nb_uniq_visitors</strong></td> <td><strong>entry_nb_visits</strong></td> <td><strong>entry_nb_actions</strong></td> <td><strong>entry_sum_visit_length</strong></td> <td><strong>entry_bounce_count</strong></td> <td><strong>avg_bandwidth</strong></td> <td><strong>avg_page_load_time</strong></td> <td><strong>avg_time_on_page</strong></td> <td><strong>bounce_rate</strong></td> <td><strong>exit_rate</strong></td> <td><strong>exit_nb_uniq_visitors</strong></td> <td><strong>exit_nb_visits</strong></td></tr><tr> <td>/homepage</td> <td>1</td> <td>1</td> <td>1</td> <td>360</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>1</td> <td>1</td> <td>2</td> <td>361</td> <td>0</td> <td>0</td> <td>0</td> <td>360</td> <td>0%</td> <td>0%</td> <td>-</td> <td>-</td></tr><tr> <td>/news</td> <td>1</td> <td>1</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>1</td> <td>1</td> <td>1</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>100%</td> <td>100%</td> <td>1</td> <td>1</td></tr><tr> <td>sub1</td> <td>1</td> <td>-</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>0</td> <td>0</td> <td>0</td> <td>0%</td> <td>100%</td> <td>-</td> <td>1</td></tr></table> + + + Tue, 14 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-14 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-14 + Site AAAAAA on 2010-12-14 + https://matomo.org + <table border=1 width=70%><tr> <td><strong>label</strong></td> <td><strong>nb_visits</strong></td> <td><strong>nb_uniq_visitors</strong></td> <td><strong>nb_hits</strong></td> <td><strong>sum_time_spent</strong></td> <td><strong>sum_bandwidth</strong></td> <td><strong>nb_hits_with_bandwidth</strong></td> <td><strong>min_bandwidth</strong></td> <td><strong>max_bandwidth</strong></td> <td><strong>entry_nb_uniq_visitors</strong></td> <td><strong>entry_nb_visits</strong></td> <td><strong>entry_nb_actions</strong></td> <td><strong>entry_sum_visit_length</strong></td> <td><strong>entry_bounce_count</strong></td> <td><strong>avg_bandwidth</strong></td> <td><strong>avg_page_load_time</strong></td> <td><strong>avg_time_on_page</strong></td> <td><strong>bounce_rate</strong></td> <td><strong>exit_rate</strong></td> <td><strong>exit_nb_uniq_visitors</strong></td> <td><strong>exit_nb_visits</strong></td></tr><tr> <td>/homepage</td> <td>1</td> <td>1</td> <td>1</td> <td>360</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>1</td> <td>1</td> <td>2</td> <td>361</td> <td>0</td> <td>0</td> <td>0</td> <td>360</td> <td>0%</td> <td>0%</td> <td>-</td> <td>-</td></tr><tr> <td>/news</td> <td>1</td> <td>1</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>1</td> <td>1</td> <td>1</td> <td>0</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>100%</td> <td>100%</td> <td>1</td> <td>1</td></tr><tr> <td>sub1</td> <td>1</td> <td>-</td> <td>1</td> <td>0</td> <td>0</td> <td>0</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>-</td> <td>0</td> <td>0</td> <td>0</td> <td>0%</td> <td>100%</td> <td>-</td> <td>1</td></tr></table> + + + \ No newline at end of file diff --git a/tests/PHPUnit/System/expected/test_rssExport__VisitsSummary.get_day.rss b/tests/PHPUnit/System/expected/test_rssExport__VisitsSummary.get_day.rss new file mode 100644 index 0000000000..9e841a342b --- /dev/null +++ b/tests/PHPUnit/System/expected/test_rssExport__VisitsSummary.get_day.rss @@ -0,0 +1,36 @@ + + + + matomo statistics - RSS + https://matomo.org + Matomo RSS feed + Tue, 20 Oct 2020 20:10:20 +0000 + matomo + en + Tue, 20 Oct 2020 20:10:20 +0000 + + Thu, 16 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-16 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-16 + Site AAAAAA on 2010-12-16 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Wed, 15 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-15 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-15 + Site AAAAAA on 2010-12-15 + https://matomo.org + <table border=1 width=70%><tr> <td><strong>nb_uniq_visitors</strong></td> <td><strong>nb_users</strong></td> <td><strong>nb_visits</strong></td> <td><strong>nb_actions</strong></td> <td><strong>nb_visits_converted</strong></td> <td><strong>bounce_count</strong></td> <td><strong>sum_visit_length</strong></td> <td><strong>max_actions</strong></td> <td><strong>bounce_rate</strong></td> <td><strong>nb_actions_per_visit</strong></td> <td><strong>avg_time_on_site</strong></td></tr><tr> <td>1</td> <td>0</td> <td>2</td> <td>3</td> <td>0</td> <td>1</td> <td>361</td> <td>2</td> <td>50%</td> <td>1.5</td> <td>181</td></tr></table> + + + Tue, 14 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-14 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-14 + Site AAAAAA on 2010-12-14 + https://matomo.org + <table border=1 width=70%><tr> <td><strong>nb_uniq_visitors</strong></td> <td><strong>nb_users</strong></td> <td><strong>nb_visits</strong></td> <td><strong>nb_actions</strong></td> <td><strong>nb_visits_converted</strong></td> <td><strong>bounce_count</strong></td> <td><strong>sum_visit_length</strong></td> <td><strong>max_actions</strong></td> <td><strong>bounce_rate</strong></td> <td><strong>nb_actions_per_visit</strong></td> <td><strong>avg_time_on_site</strong></td></tr><tr> <td>1</td> <td>0</td> <td>2</td> <td>3</td> <td>0</td> <td>1</td> <td>361</td> <td>2</td> <td>50%</td> <td>1.5</td> <td>181</td></tr></table> + + + \ No newline at end of file diff --git a/tests/PHPUnit/System/expected/test_rssExport_empty__Actions.getPageUrl_day.rss b/tests/PHPUnit/System/expected/test_rssExport_empty__Actions.getPageUrl_day.rss new file mode 100644 index 0000000000..f18c004ac6 --- /dev/null +++ b/tests/PHPUnit/System/expected/test_rssExport_empty__Actions.getPageUrl_day.rss @@ -0,0 +1,68 @@ + + + + matomo statistics - RSS + https://matomo.org + Matomo RSS feed + Tue, 20 Oct 2020 20:10:20 +0000 + matomo + en + Tue, 20 Oct 2020 20:10:20 +0000 + + Tue, 20 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + Site AAAAAA on 2020-10-20 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Mon, 19 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + Site AAAAAA on 2020-10-19 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Sun, 18 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + Site AAAAAA on 2020-10-18 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Sat, 17 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + Site AAAAAA on 2020-10-17 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Fri, 16 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + Site AAAAAA on 2020-10-16 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Thu, 15 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + Site AAAAAA on 2020-10-15 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Wed, 14 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date= + Site AAAAAA on 2020-10-14 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + \ No newline at end of file diff --git a/tests/PHPUnit/System/expected/test_rssExport_empty__Actions.getPageUrl_week.rss b/tests/PHPUnit/System/expected/test_rssExport_empty__Actions.getPageUrl_week.rss new file mode 100644 index 0000000000..eb34219dbc --- /dev/null +++ b/tests/PHPUnit/System/expected/test_rssExport_empty__Actions.getPageUrl_week.rss @@ -0,0 +1,36 @@ + + + + matomo statistics - RSS + https://matomo.org + Matomo RSS feed + Tue, 20 Oct 2020 20:10:20 +0000 + matomo + en + Tue, 20 Oct 2020 20:10:20 +0000 + + Mon, 19 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date= + Site AAAAAA on 2020-10-19,2020-10-25 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Mon, 12 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date= + Site AAAAAA on 2020-10-12,2020-10-18 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Mon, 05 Oct 2020 20:10:20 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date= + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=week&date= + Site AAAAAA on 2020-10-05,2020-10-11 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + \ No newline at end of file diff --git a/tests/PHPUnit/System/expected/test_rssExport_subdir__Actions.getPageUrl_day.rss b/tests/PHPUnit/System/expected/test_rssExport_subdir__Actions.getPageUrl_day.rss new file mode 100644 index 0000000000..4cc06ac082 --- /dev/null +++ b/tests/PHPUnit/System/expected/test_rssExport_subdir__Actions.getPageUrl_day.rss @@ -0,0 +1,76 @@ + + + + matomo statistics - RSS + https://matomo.org + Matomo RSS feed + Tue, 20 Oct 2020 20:10:20 +0000 + matomo + en + Tue, 20 Oct 2020 20:10:20 +0000 + + Tue, 21 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-21 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-21 + Site AAAAAA on 2010-12-21 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Mon, 20 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-20 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-20 + Site AAAAAA on 2010-12-20 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Sun, 19 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-19 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-19 + Site AAAAAA on 2010-12-19 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Sat, 18 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-18 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-18 + Site AAAAAA on 2010-12-18 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Fri, 17 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-17 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-17 + Site AAAAAA on 2010-12-17 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Thu, 16 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-16 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-16 + Site AAAAAA on 2010-12-16 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Wed, 15 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-15 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-15 + Site AAAAAA on 2010-12-15 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + Tue, 14 Dec 2010 00:00:00 +0000 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-14 + http://example.com/piwik/tests/PHPUnit/proxy/?module=CoreHome&action=index&idSite=1&period=day&date=2010-12-14 + Site AAAAAA on 2010-12-14 + https://matomo.org + <strong><em>Empty table</em></strong><br /> + + + \ No newline at end of file -- cgit v1.2.3