File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
app/code/Magento/Elasticsearch/ElasticAdapter/SearchAdapter
dev/tests/integration/testsuite/Magento/Elasticsearch/ElasticAdapter/SearchAdapter Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ public function query(RequestInterface $request)
96
96
$ rawResponse = $ client ->query ($ query );
97
97
} catch (\Exception $ e ) {
98
98
$ this ->logger ->critical ($ e );
99
- throw new ClientException (__ ("Could not perform search query. " ), $ e ->getCode (), $ e );
99
+ throw new ClientException (__ ("Could not perform search query. " ), $ e, $ e ->getCode ());
100
100
}
101
101
102
102
$ rawDocuments = isset ($ rawResponse ['hits ' ]['hits ' ]) ? $ rawResponse ['hits ' ]['hits ' ] : [];
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ public function testQuery()
88
88
$ this ->requestBuilder ->bind ('fulltext_search_query ' , 'socks ' );
89
89
$ this ->requestBuilder ->setRequestName ('one_match ' );
90
90
$ queryRequest = $ this ->requestBuilder ->create ();
91
- $ exception = new \Exception ('Test Message ' );
91
+ $ exception = new \Exception ('Test message. ' );
92
92
$ this ->loggerMock ->expects ($ this ->once ())->method ('critical ' )->with ($ exception );
93
93
$ this ->clientMock ->expects ($ this ->once ())->method ('query ' )->willThrowException ($ exception );
94
94
$ this ->expectException (ClientException::class);
You can’t perform that action at this time.
0 commit comments