File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
app/code/Magento/Elasticsearch/Test/Unit/Model/Adapter Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1313use Exception ;
1414use Magento \AdvancedSearch \Model \Client \ClientInterface as ElasticsearchClient ;
1515use Magento \AdvancedSearch \Model \Client \ClientOptionsInterface ;
16+ use Magento \Elasticsearch7 \Model \Client \Elasticsearch ;
1617use Magento \Catalog \Api \ProductAttributeRepositoryInterface ;
1718use Magento \Eav \Model \Entity \Attribute \AbstractAttribute ;
1819use Magento \Elasticsearch \Model \Adapter \BatchDataMapperInterface ;
@@ -76,7 +77,7 @@ class ElasticsearchTest extends TestCase
7677 protected $ logger ;
7778
7879 /**
79- * @var ElasticsearchClient |MockObject
80+ * @var Elasticsearch |MockObject
8081 */
8182 protected $ client ;
8283
@@ -154,7 +155,7 @@ protected function setUp(): void
154155 $ elasticsearchClientMock ->expects ($ this ->any ())
155156 ->method ('indices ' )
156157 ->willReturn ($ indicesMock );
157- $ this ->client = $ this ->createMock (ElasticsearchClient ::class);
158+ $ this ->client = $ this ->createMock (Elasticsearch ::class);
158159 $ this ->connectionManager ->expects ($ this ->any ())
159160 ->method ('getConnection ' )
160161 ->willReturn ($ this ->client );
You can’t perform that action at this time.
0 commit comments