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 'tests/PHPUnit/Integration/TransitionsTest.php')
-rw-r--r--tests/PHPUnit/Integration/TransitionsTest.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/tests/PHPUnit/Integration/TransitionsTest.php b/tests/PHPUnit/Integration/TransitionsTest.php
index 0523feec4c..318a6bc0ce 100644
--- a/tests/PHPUnit/Integration/TransitionsTest.php
+++ b/tests/PHPUnit/Integration/TransitionsTest.php
@@ -23,6 +23,46 @@ class Test_Piwik_Integration_Transitions extends IntegrationTestCase
$return[] = array('Transitions.getTransitionsForPageUrl', array(
'idSite' => self::$fixture->idSite,
'date' => self::$fixture->dateTime,
+ 'periods' => array('day', 'month'),
+ 'testSuffix' => '_noLimit',
+ 'otherRequestParameters' => array(
+ 'pageUrl' => 'http://example.org/page/one.html',
+ )
+ ));
+ $return[] = array('Transitions.getTransitionsForPageTitle', array(
+ 'idSite' => self::$fixture->idSite,
+ 'date' => self::$fixture->dateTime,
+ 'periods' => array('day', 'month'),
+ 'testSuffix' => '_noLimit',
+ 'otherRequestParameters' => array(
+ 'pageTitle' => 'page title - page/one.html',
+ )
+ ));
+
+ // test w/ pages that don't exist
+ $return[] = array('Transitions.getTransitionsForPageUrl', array(
+ 'idSite' => self::$fixture->idSite,
+ 'date' => self::$fixture->dateTime,
+ 'periods' => array('day', 'month'),
+ 'testSuffix' => '_noData',
+ 'otherRequestParameters' => array(
+ 'pageUrl' => 'http://example.org/not/a/page.html',
+ )
+ ));
+ $return[] = array('Transitions.getTransitionsForPageTitle', array(
+ 'idSite' => self::$fixture->idSite,
+ 'date' => self::$fixture->dateTime,
+ 'periods' => array('day', 'month'),
+ 'testSuffix' => '_noData',
+ 'otherRequestParameters' => array(
+ 'pageTitle' => 'not a page title',
+ )
+ ));
+
+ $return[] = array('Transitions.getTransitionsForPageUrl', array( // test w/ limiting
+ 'idSite' => self::$fixture->idSite,
+ 'date' => self::$fixture->dateTime,
+ 'periods' => array('day', 'month'),
'otherRequestParameters' => array(
'pageUrl' => 'http://example.org/page/one.html',
'limitBeforeGrouping' => 2