Skip to content

Commit 3a8d8b2

Browse files
committed
Merge branch 'bugs-bak' into bugs
2 parents 4ce4aac + f3bfb97 commit 3a8d8b2

File tree

1 file changed

+1
-1
lines changed
  • dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/Builder/Query

1 file changed

+1
-1
lines changed

dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/Builder/Query/MatchTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ protected function setUp()
2929
*/
3030
public function testBuildQuery($conditionType, $expectedSuffix)
3131
{
32-
$conditionPattern = "(MATCH (data_index) AGAINST ('%ssomeValue*' IN BOOLEAN MODE) * %s) AS score";
32+
$conditionPattern = "(MATCH (data_index) AGAINST ('%ssomeValue*' IN BOOLEAN MODE) * POW(2, %s)) AS score";
3333
$expectedScoreCondition = sprintf($conditionPattern, $expectedSuffix, ScoreBuilder::WEIGHT_FIELD);
3434
$expectedSql = "SELECT `someTable`.* FROM `someTable` WHERE (MATCH (data_index) " .
3535
"AGAINST ('{$expectedSuffix}someValue*' IN BOOLEAN MODE))";

0 commit comments

Comments
 (0)