From ae8071f707cccb4c2b3f3a7151b7f19a28c73dde Mon Sep 17 00:00:00 2001 From: Eric Date: Tue, 26 Nov 2019 17:24:23 +0100 Subject: [PATCH] add unit tests for intersect --- test/core/OQLToSQLTest.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/test/core/OQLToSQLTest.php b/test/core/OQLToSQLTest.php index d69fc0b86..caa23da54 100644 --- a/test/core/OQLToSQLTest.php +++ b/test/core/OQLToSQLTest.php @@ -294,6 +294,16 @@ class OQLToSQLTest extends ItopDataTestCase return null; } + private function OQLSelectProviderStaticTTO() + { + $aAttToLoadTTO = array('UserRequest' => array('tto')); + $aData = array( + "SELECT UserRequest TTO" => array("SELECT UserRequest FROM UserRequest AS UserRequest WHERE tto_laststart AND tto_75_triggered = 0 AND tto_75_deadline < '2010-06-26 12:08:59'", array(), array(), $aAttToLoadTTO, null, null, 3, 0), + ); + + return $aData; + } + private function OQLSelectProviderStatic() { @@ -899,7 +909,8 @@ class OQLToSQLTest extends ItopDataTestCase public function OQLSelectProvider() { - $aData = $this->OQLSelectProviderStatic(); + $aData = $this->OQLSelectProviderStaticTTO(); + $aData = array_merge($aData,$this->OQLSelectProviderStatic()); // Dynamic entries @include ('oql_records.php');