Skip to content

Commit 2686bc4

Browse files
author
Maksym Aposov
committed
MAGETWO-39709: Merge configuration for search_request.xml does not work
1 parent 6242543 commit 2686bc4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

dev/tests/integration/testsuite/Magento/Framework/Search/Request/Config/FileSystemReaderTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ public function testRead()
2525
{
2626
$result = $this->object->read();
2727
// Filter values added by \Magento\CatalogSearch\Model\Search\ReaderPlugin
28-
$result = array_filter($result, function ($k) {
29-
return in_array($k, ['bool_query', 'filter_query', 'new_match_query']);
30-
}, ARRAY_FILTER_USE_KEY);
28+
$result = array_intersect_key($result, array_flip(['bool_query', 'filter_query', 'new_match_query']));
3129
$expected = include __DIR__ . '/../../_files/search_request_merged.php';
3230
$this->assertEquals($expected, $result);
3331
}

0 commit comments

Comments
 (0)