File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed
dev/tests/integration/testsuite/Magento/Elasticsearch6/SearchAdapter Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -32,13 +32,28 @@ protected function setUp()
32
32
$ this ->connectionManager = $ this ->objectManager ->create (ConnectionManager::class);
33
33
}
34
34
35
+ /**
36
+ * Test if 'elasticsearch5' search engine returned by connection manager.
37
+ *
38
+ * @magentoAppIsolation enabled
39
+ * @magentoConfigFixture default/catalog/search/engine elasticsearch5
40
+ */
41
+ public function testCorrectElasticsearchClientEs5 ()
42
+ {
43
+ $ connection = $ this ->connectionManager ->getConnection ();
44
+ $ this ->assertInstanceOf (
45
+ \Magento \Elasticsearch \Elasticsearch5 \Model \Client \Elasticsearch::class,
46
+ $ connection
47
+ );
48
+ }
49
+
35
50
/**
36
51
* Test if 'elasticsearch6' search engine returned by connection manager.
37
52
*
38
53
* @magentoAppIsolation enabled
39
54
* @magentoConfigFixture default/catalog/search/engine elasticsearch6
40
55
*/
41
- public function testCorrectElasticsearchClient ()
56
+ public function testCorrectElasticsearchClientEs6 ()
42
57
{
43
58
$ connection = $ this ->connectionManager ->getConnection ();
44
59
$ this ->assertInstanceOf (
You can’t perform that action at this time.
0 commit comments