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:
Diffstat (limited to 'plugins/CustomVariables/tests/Integration/ModelTest.php')
-rw-r--r--plugins/CustomVariables/tests/Integration/ModelTest.php20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/CustomVariables/tests/Integration/ModelTest.php b/plugins/CustomVariables/tests/Integration/ModelTest.php
index 905a5f6a1d..6f504f9525 100644
--- a/plugins/CustomVariables/tests/Integration/ModelTest.php
+++ b/plugins/CustomVariables/tests/Integration/ModelTest.php
@@ -102,6 +102,26 @@ class ModelTest extends IntegrationTestCase
$this->assertEquals('Conversion', $this->getConversionScope()->getScopeName());
}
+ public function testGetScopeDescription()
+ {
+ $this->assertEquals('scope page', $this->getPageScope()->getScopeDescription());
+ $this->assertEquals('scope visit', $this->getVisitScope()->getScopeDescription());
+ $this->assertEquals('scope conversion', $this->getConversionScope()->getScopeDescription());
+ }
+
+ public function testGetUnprefixedTableName()
+ {
+ $this->assertEquals('log_link_visit_action', $this->getPageScope()->getUnprefixedTableName());
+ $this->assertEquals('log_visit', $this->getVisitScope()->getUnprefixedTableName());
+ $this->assertEquals('log_conversion', $this->getConversionScope()->getUnprefixedTableName());
+ }
+
+ public function testGetScope()
+ {
+ $this->assertEquals(Model::SCOPE_PAGE, $this->getPageScope()->getScope());
+ $this->assertEquals(Model::SCOPE_VISIT, $this->getVisitScope()->getScope());
+ }
+
public function test_getCurrentNumCustomVars()
{
$this->assertEquals(5, $this->getPageScope()->getCurrentNumCustomVars());