Skip to content

Commit e853bf6

Browse files
committed
MC-17629: Control over search results min terms to match
- Fix static tests
1 parent 0c9a7a6 commit e853bf6

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/code/Magento/Elasticsearch/Model/Config/Backend/MinimumShouldMatch.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ public function validateValue(): void
3434
{
3535
if (strlen($this->getValue()) && !preg_match('/^((\d+<)?-?\d+%?\s?)+$/', $this->getValue())) {
3636
throw new LocalizedException(
37-
__('Value for the field "%1" was not saved because of the incorrect format.', __('Minimum Terms to Match'))
37+
__(
38+
'Value for the field "%1" was not saved because of the incorrect format.',
39+
__('Minimum Terms to Match')
40+
)
3841
);
3942
}
4043
}

app/code/Magento/Elasticsearch6/Test/Unit/Model/Client/ElasticsearchTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use Magento\Elasticsearch6\Model\Client\Elasticsearch;
1313

1414
/**
15-
* Class ElasticsearchTest
15+
* Test elasticsearch client methods
1616
*/
1717
class ElasticsearchTest extends \PHPUnit\Framework\TestCase
1818
{

0 commit comments

Comments
 (0)