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
path: root/tests
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2017-09-26 04:32:54 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2017-09-26 04:32:54 +0300
commit948e1f04b48b7f6a8ef7d0f0421bf075feb9003a (patch)
treef21ba915daca8ce86eb2cb57fe7bec76688bfb19 /tests
parent2459f222b6f96db3698e1f6b380c59a0bd8b5938 (diff)
Better fetching of saved report parameters by report ID (#11983)
* Better report parameter fetching * prefer a unique report id * add method to get id * removed code that is supposed to be in different PR
Diffstat (limited to 'tests')
-rw-r--r--tests/PHPUnit/Integration/ReportTest.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/ReportTest.php b/tests/PHPUnit/Integration/ReportTest.php
index 2aed43693b..adfd973c73 100644
--- a/tests/PHPUnit/Integration/ReportTest.php
+++ b/tests/PHPUnit/Integration/ReportTest.php
@@ -329,6 +329,17 @@ class ReportTest extends IntegrationTestCase
$this->assertEquals($action, $report->getAction());
}
+ public function test_getId_ShouldReturnOnlyReturnModuleAndActionWhenNoParametersSet()
+ {
+ $report = new GetExampleReport();
+ $this->assertEquals('ExampleReport.getExampleReport', $report->getId());
+ }
+
+ public function test_getId_ShouldReturnIncludeParamsIfSet()
+ {
+ $this->assertEquals('TestPlugin.getAdvancedReport_idGoal--1', $this->advancedReport->getId());
+ }
+
public function test_getSubtableDimension_ShouldReturnNullIfNoSubtableActionExists()
{
$report = new GetExampleReport();