Exemplo n.º 1
0
 /**
  * @param array $configData
  * @param string $entity
  * @param string[] $expectedResult
  * @dataProvider getEntityTypesDataProvider
  */
 public function testGetEntityTypes($configData, $entity, $expectedResult)
 {
     $this->_configScopeMock->expects($this->any())->method('load')->with($this->_cacheId)->will($this->returnValue(false));
     $this->_readerMock->expects($this->any())->method('read')->will($this->returnValue($configData));
     $this->_model = new \Magento\ImportExport\Model\Export\Config($this->_readerMock, $this->_configScopeMock, $this->_cacheId);
     $this->assertEquals($expectedResult, $this->_model->getEntityTypes($entity));
 }