34 $this->scopeConfig = $this->getMockBuilder(\
Magento\Framework\
App\
Config\ScopeConfigInterface::class)
35 ->disableOriginalConstructor()
40 \
Magento\Elasticsearch\Model\Config::class,
42 'scopeConfig' => $this->scopeConfig
52 $this->scopeConfig->expects($this->any())
56 'hostname' =>
'localhost',
58 'index' =>
'magento2',
72 $this->scopeConfig->expects($this->any())
74 ->willReturn(
'indexPrefix');
75 $this->assertEquals(
'indexPrefix', $this->model->getIndexPrefix());
83 $this->assertInternalType(
'string', $this->model->getEntityType());
91 $this->assertFalse($this->model->isElasticsearchEnabled());
testIsElasticsearchEnabled()
testPrepareClientOptions()