diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-03-03 17:27:20 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-03-03 17:27:20 +0300 |
commit | 6f3faf8c9dea2772ab74891a4c3c7216e231b84c (patch) | |
tree | 6a1390dba735b04fe5683ab769f3deb1f1395b95 | |
parent | cb270d9812b2b1f459ee45ac157e8a3fd28a06f0 (diff) |
Adding failing test case which reproduces SQL error #9822
-rw-r--r-- | tests/PHPUnit/System/TransitionsTest.php | 12 | ||||
-rw-r--r-- | tests/PHPUnit/System/expected/test_Transitions_withSegment__Transitions.getTransitionsForPageUrl_day.xml | 6 |
2 files changed, 18 insertions, 0 deletions
diff --git a/tests/PHPUnit/System/TransitionsTest.php b/tests/PHPUnit/System/TransitionsTest.php index 3049d0f823..44d38dc9db 100644 --- a/tests/PHPUnit/System/TransitionsTest.php +++ b/tests/PHPUnit/System/TransitionsTest.php @@ -79,6 +79,18 @@ class TransitionsTest extends SystemTestCase 'limitBeforeGrouping' => 2 ) )); + + $return[] = array('Transitions.getTransitionsForPageUrl', array( // test w/ segment + 'idSite' => self::$fixture->idSite, + 'date' => self::$fixture->dateTime, + 'periods' => array('day'), + 'testSuffix' => '_withSegment', + 'segment' => 'visitConvertedGoalId!%3D2', + 'otherRequestParameters' => array( + 'pageUrl' => 'http://example.org/page/one.html', + 'limitBeforeGrouping' => 2 + ) + )); return $return; } diff --git a/tests/PHPUnit/System/expected/test_Transitions_withSegment__Transitions.getTransitionsForPageUrl_day.xml b/tests/PHPUnit/System/expected/test_Transitions_withSegment__Transitions.getTransitionsForPageUrl_day.xml new file mode 100644 index 0000000000..3f6cf26e87 --- /dev/null +++ b/tests/PHPUnit/System/expected/test_Transitions_withSegment__Transitions.getTransitionsForPageUrl_day.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8" ?> +<result> + <error message="SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'idaction_url' in field list is ambiguous + + --> To temporarily debug this error further, set const PIWIK_PRINT_ERROR_BACKTRACE=true; in index.php" /> +</result>
\ No newline at end of file |