private function executeQuery($requestName, $bindValues)
 {
     $this->reindexAll();
     /** @var \Magento\Framework\Search\Request $queryRequest */
     $queryRequest = $this->requestFactory->create($requestName, $bindValues);
     $queryResponse = $this->adapter->query($queryRequest);
     return $queryResponse;
 }
Beispiel #2
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testCreateInvalidArgumentException()
 {
     $requestName = 'rn';
     $this->config->expects($this->once())->method('get')->with($this->equalTo($requestName))->will($this->returnValue(null));
     $this->factory->create($requestName);
 }