/**
  * @param bool $isMinQueryLength
  * @param string $expectedResult
  * @dataProvider getNoResultTextDataProvider
  */
 public function testGetNoResultText($isMinQueryLength, $expectedResult)
 {
     $this->dataMock->expects($this->once())->method('isMinQueryLength')->will($this->returnValue($isMinQueryLength));
     if ($isMinQueryLength) {
         $queryMock = $this->getMock('Magento\\Search\\Model\\Query', [], [], '', false);
         $queryMock->expects($this->once())->method('getMinQueryLength')->will($this->returnValue('5'));
         $this->queryFactoryMock->expects($this->once())->method('get')->will($this->returnValue($queryMock));
     }
     $this->assertEquals($expectedResult, $this->model->getNoResultText());
 }