Add in/inArray tests

- Make nameFields void (modifies array by ref)
This commit is contained in:
2024-09-25 20:03:17 -04:00
parent 9a2cf4c204
commit a3ad158dfe
14 changed files with 140 additions and 37 deletions

View File

@@ -349,7 +349,7 @@ class FieldTest extends TestCase
Configuration::overrideMode(Mode::PgSQL);
try {
$field = Field::inArray('even', 'tbl', [2, 4, 6, 8], ':it');
$this->assertEquals("data->'even' ?| ARRAY[:it_0, :it_1, :it_2, :it_3]", $field->toWhere(),
$this->assertEquals("data->'even' ??| ARRAY[:it_0, :it_1, :it_2, :it_3]", $field->toWhere(),
'WHERE fragment not generated correctly');
} finally {
Configuration::overrideMode(null);