@@ -179,7 +179,16 @@ public function testLikeCI()
179179 ->method ('getSymbol ' )
180180 ->willReturn (Operator::LIKE_CI );
181181
182- $ this ->assertEquals (['query_string ' => ['query ' => 'name:*lada* ' ]], $ this ->comparisonFormatter ->format ('name ' , $ this ->operatorMock , new SingleValue ('lada ' )));
182+ $ this ->assertEquals (['query_string ' => ['query ' => 'name:(*lada*) ' ]], $ this ->comparisonFormatter ->format ('name ' , $ this ->operatorMock , new SingleValue ('lada ' )));
183+ }
184+
185+ public function testMultiLikeCI ()
186+ {
187+ $ this ->operatorMock ->expects ($ this ->any ())
188+ ->method ('getSymbol ' )
189+ ->willReturn (Operator::MULTI_LIKE_CI );
190+
191+ $ this ->assertEquals (['query_string ' => ['query ' => 'username:(*my** **name* *is** **rio*) ' ]], $ this ->comparisonFormatter ->format ('username ' , $ this ->operatorMock , new SingleValue ('my_name is-rio ' )));
183192 }
184193
185194 public function testLikeCIVersion7 ()
@@ -191,8 +200,8 @@ public function testLikeCIVersion7()
191200 ->willReturn (Operator::LIKE_CI );
192201
193202 $ this ->assertEquals (
194- ['query_string ' => ['query ' => 'name:*lada * ' ]],
195- $ comparisonFormatter ->format ('name ' , $ this ->operatorMock , new SingleValue ('LADA ' ))
203+ ['query_string ' => ['query ' => 'name:*dacia * ' ]],
204+ $ comparisonFormatter ->format ('name ' , $ this ->operatorMock , new SingleValue ('DACIA ' ))
196205 );
197206 }
198207
@@ -234,4 +243,5 @@ public function testQueryStringVersion7()
234243 $ comparisonFormatter ->format ('' , $ this ->operatorMock , new SingleValue ('username: *test* OR email: *test* ' ))
235244 );
236245 }
246+
237247}
0 commit comments