N°2677 - Add style definition for enums

This commit is contained in:
Eric
2020-12-31 11:25:00 +01:00
parent e20f6d7564
commit f1ad55c86c
32 changed files with 2722 additions and 345 deletions

View File

@@ -32,16 +32,17 @@ class ExpressionTest extends ItopDataTestCase
public function ListParametersProvider()
{
return array(
array('1', array()),
array(':id = 2', array(':id')),
array('expiration_date < DATE_SUB(NOW(), INTERVAL :expiration_days DAY)', array(':expiration_days')),
array('id IN (SELECT Organization WHERE :id = 2)', array(':id')),
array('id IN (:id, 2)', array(':id')),
array("B.name LIKE :name", array(':name')),
array("name REGEXP :regexp", array(':regexp')),
array(" t.agent_id = :current_contact_id", array(':current_contact_id')),
array("INET_ATON(dev.managementip) > INET_ATON('10.22.32.224') AND INET_ATON(:ip) < INET_ATON('10.22.32.255')", array(':ip')),
);
return [
['1', []],
[':id = 2', [':id']],
['expiration_date < DATE_SUB(NOW(), INTERVAL :expiration_days DAY)', [':expiration_days']],
['id IN (SELECT Organization WHERE :id = 2)', [':id']],
['id IN (:id, 2)', [':id']],
["B.name LIKE :name", [':name']],
["name REGEXP :regexp", [':regexp']],
[" t.agent_id = :current_contact_id", [':current_contact_id']],
["INET_ATON(dev.managementip) > INET_ATON('10.22.32.224') AND INET_ATON(:ip) < INET_ATON('10.22.32.255')", [':ip']],
["((`UserRequest`.`status` IN ('closed','rejected','resolved')))", []]
];
}
}