Skip to content

Commit d9b59fa

Browse files
committed
MAGETWO-51926: All Integration Tests for Elasticsearch are Skipped
- Updates based on code review
1 parent 9026ada commit d9b59fa

File tree

1 file changed

+4
-10
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql

1 file changed

+4
-10
lines changed

dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/AdapterTest.php

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,6 @@ public function testCustomFilterableAttribute()
405405
*/
406406
public function testAdvancedSearchDateField($rangeFilter, $expectedRecordsCount)
407407
{
408-
array_walk($rangeFilter, function (&$item) {
409-
if (!empty($item)) {
410-
$item = gmdate('c', strtotime($item)) . 'Z';
411-
$item = str_replace('+00:00', '', $item);
412-
}
413-
});
414408
$this->requestBuilder->bind('date.from', $rangeFilter['from']);
415409
$this->requestBuilder->bind('date.to', $rangeFilter['to']);
416410
$this->requestBuilder->setRequestName('advanced_search_date_field');
@@ -422,10 +416,10 @@ public function testAdvancedSearchDateField($rangeFilter, $expectedRecordsCount)
422416
public function dateDataProvider()
423417
{
424418
return [
425-
[['from' => '2000-01-01', 'to' => '2000-01-01'], 1], //Y-m-d
426-
[['from' => '2000-01-01', 'to' => ''], 1],
427-
[['from' => '1999-12-31', 'to' => '2000-01-01'], 1],
428-
[['from' => '2000-02-01', 'to' => ''], 0],
419+
[['from' => '2000-01-01T00:00:00Z', 'to' => '2000-01-01T00:00:00Z'], 1], //Y-m-d
420+
[['from' => '2000-01-01T00:00:00Z', 'to' => ''], 1],
421+
[['from' => '1999-12-31T00:00:00Z', 'to' => '2000-01-01T00:00:00Z'], 1],
422+
[['from' => '2000-02-01T00:00:00Z', 'to' => ''], 0],
429423
];
430424
}
431425
}

0 commit comments

Comments
 (0)