From c7d39db582a82dc0e6c7236a53e34308bf6dd3d3 Mon Sep 17 00:00:00 2001 From: Thomas Steur <thomas.steur@gmail.com> Date: Thu, 1 Dec 2016 07:32:03 +0000 Subject: [PATCH] added more complex example to show it better --- tests/PHPUnit/Integration/SegmentTest.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/PHPUnit/Integration/SegmentTest.php b/tests/PHPUnit/Integration/SegmentTest.php index 2023f652c6..20b23065db 100644 --- a/tests/PHPUnit/Integration/SegmentTest.php +++ b/tests/PHPUnit/Integration/SegmentTest.php @@ -456,6 +456,16 @@ class SegmentTest extends IntegrationTestCase 'tableAlias' => 'log_action_bar', 'joinOn' => "log_link_visit_action_bar.idaction_url = log_action_bar.idaction" ), + array( + 'table' => 'log_link_visit_action', + 'tableAlias' => 'log_link_visit_action_baz', + 'joinOn' => "log_link_visit_action.idvisit = log_link_visit_action_baz.idvisit" + ), + array( + 'table' => 'log_action', + 'tableAlias' => 'log_action_baz', + 'joinOn' => "log_link_visit_action_baz.idaction_url = log_action_baz.idaction" + ), 'log_action', ); @@ -487,6 +497,10 @@ class SegmentTest extends IntegrationTestCase ON log_link_visit_action.idvisit = log_link_visit_action_bar.idvisit LEFT JOIN $logActionTable AS log_action_bar ON log_link_visit_action_bar.idaction_url = log_action_bar.idaction + LEFT JOIN $logLinkVisitActionTable AS log_link_visit_action_baz + ON log_link_visit_action.idvisit = log_link_visit_action_baz.idvisit + LEFT JOIN $logActionTable AS log_action_baz + ON log_link_visit_action_baz.idaction_url = log_action_baz.idaction LEFT JOIN $logActionTable AS log_action ON log_link_visit_action.idaction_url = log_action.idaction WHERE ( log_link_visit_action.server_time >= ? -- GitLab