22 $this->instancesType = [
'simple' =>
'simple',
'default' =>
'default'];
24 $objectManagerMock = $this->createMock(\
Magento\Framework\ObjectManagerInterface::class);
25 $this->model = new \Magento\Catalog\Helper\Product\ConfigurationPool($objectManagerMock, $this->instancesType);
35 $this->assertEquals($expectedResult, $this->model->getByProductType($productType));
45 'productType' =>
'simple',
46 'expectedResult' =>
'simple' 49 'productType' =>
'custom',
50 'expectedResult' =>
'default'
testGetByProductType($productType, $expectedResult)
getByProductTypeDataProvider()