Skip to content

Commit e14ca21

Browse files
committed
fix logical test case failure
1 parent 8c15141 commit e14ca21

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

Tests/Functional/Helper/QueryFilterHelperTest.php

+17-17
Original file line numberDiff line numberDiff line change
@@ -113,23 +113,6 @@ public function testGetCustomValueValueExpression(): void
113113
]
114114
);
115115

116-
$this->assertMatchWhere(
117-
'test_value.value BETWEEN 0 AND 10',
118-
[
119-
'glue' => 'and',
120-
'field' => 'cmf_'.$this->getFixtureById('custom_object_product')->getId(),
121-
'object' => 'custom_object',
122-
'type' => 'int',
123-
'operator' => 'between',
124-
'properties' => [
125-
'filter' => [
126-
'number_from' => 0,
127-
'number_to' => 10,
128-
],
129-
],
130-
]
131-
);
132-
133116
$this->assertMatchWhere(
134117
"test_value.value BETWEEN '2024-05-15 00:00:00' AND '2024-05-24 23:59:59'",
135118
[
@@ -244,6 +227,23 @@ public function testGetCustomValueValueExpression(): void
244227
],
245228
]
246229
);
230+
231+
$this->assertMatchWhere(
232+
'test_value.value BETWEEN 0 AND 10',
233+
[
234+
'glue' => 'and',
235+
'field' => 'cmf_'.$this->getFixtureById('custom_object_product')->getId(),
236+
'object' => 'custom_object',
237+
'type' => 'int',
238+
'operator' => 'between',
239+
'properties' => [
240+
'filter' => [
241+
'number_from' => 0,
242+
'number_to' => 10,
243+
],
244+
],
245+
]
246+
);
247247
}
248248

249249
protected function assertMatchWhere(string $expectedWhere, array $filter): void

0 commit comments

Comments
 (0)