Advanced Search: Undefined for enums and unit tests

SVN:b1162[5517]
This commit is contained in:
Eric Espié
2018-03-23 16:22:10 +00:00
parent b566bead31
commit 50e0ea5ec5
3 changed files with 11 additions and 0 deletions

View File

@@ -356,6 +356,7 @@ class CriterionConversionTest extends ItopDataTestCase
'enum NOT IN' => array('OQL' => "SELECT Contact WHERE status NOT IN ('active')"),
'enum undefined' => array('OQL' => "SELECT FunctionalCI WHERE ((business_criticity = 'high') OR ISNULL(business_criticity)) AND 1"),
'enum undefined1' => array('OQL' => "SELECT FunctionalCI WHERE ((business_criticity IN ('high', 'medium')) OR ISNULL(business_criticity)) AND 1"),
'enum undefined2' => array('OQL' => "SELECT FunctionalCI WHERE ISNULL(business_criticity)"),
'key NOT IN' => array('OQL' => "SELECT Contact WHERE org_id NOT IN ('1')"),
'key IN' => array('OQL' => "SELECT Contact WHERE org_id IN ('1')"),
'key empty' => array('OQL' => "SELECT Person WHERE location_id = '0'"),