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:
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();