Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/Dashboard/API.php4
-rw-r--r--tests/PHPUnit/Integration/expected/test_ImportLogs__Dashboard.getUserDashboards.xml2
-rw-r--r--tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits__Dashboard.getUserDashboards.xml2
-rw-r--r--tests/PHPUnit/Integration/expected/test_noVisit_PeriodIsLast__Dashboard.getUserDashboards.xml2
-rw-r--r--tests/PHPUnit/Integration/expected/test_noVisit__Dashboard.getUserDashboards.xml2
5 files changed, 10 insertions, 2 deletions
diff --git a/plugins/Dashboard/API.php b/plugins/Dashboard/API.php
index 14a058b2aa..7c5df1e858 100644
--- a/plugins/Dashboard/API.php
+++ b/plugins/Dashboard/API.php
@@ -46,7 +46,7 @@ class Piwik_Dashboard_API
*
* @return array[]
*/
- public function getDashboards()
+ private function getDashboards()
{
$dashboards = $this->getUserDashboards();
@@ -62,7 +62,7 @@ class Piwik_Dashboard_API
*
* @return array[]
*/
- public function getDefaultDashboard()
+ private function getDefaultDashboard()
{
$defaultLayout = $this->dashboard->getDefaultLayout();
$defaultLayout = $this->dashboard->decodeLayout($defaultLayout);
diff --git a/tests/PHPUnit/Integration/expected/test_ImportLogs__Dashboard.getUserDashboards.xml b/tests/PHPUnit/Integration/expected/test_ImportLogs__Dashboard.getUserDashboards.xml
new file mode 100644
index 0000000000..c234bed59e
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_ImportLogs__Dashboard.getUserDashboards.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_OneVisitorTwoVisits__Dashboard.getUserDashboards.xml b/tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits__Dashboard.getUserDashboards.xml
new file mode 100644
index 0000000000..c234bed59e
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_OneVisitorTwoVisits__Dashboard.getUserDashboards.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_noVisit_PeriodIsLast__Dashboard.getUserDashboards.xml b/tests/PHPUnit/Integration/expected/test_noVisit_PeriodIsLast__Dashboard.getUserDashboards.xml
new file mode 100644
index 0000000000..c234bed59e
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_noVisit_PeriodIsLast__Dashboard.getUserDashboards.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_noVisit__Dashboard.getUserDashboards.xml b/tests/PHPUnit/Integration/expected/test_noVisit__Dashboard.getUserDashboards.xml
new file mode 100644
index 0000000000..c234bed59e
--- /dev/null
+++ b/tests/PHPUnit/Integration/expected/test_noVisit__Dashboard.getUserDashboards.xml
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<result /> \ No newline at end of file