Example #1
0
 /**
  * @param array $value
  * @param null|string $expected
  * @dataProvider getEntitiesDataProvider
  */
 public function testGetEntities($value, $expected)
 {
     $this->_configScopeMock->expects($this->any())->method('load')->with($this->_cacheId)->will($this->returnValue(false));
     $this->_readerMock->expects($this->any())->method('read')->will($this->returnValue($value));
     $this->_model = new \Magento\ImportExport\Model\Import\Config($this->_readerMock, $this->_configScopeMock, $this->_cacheId);
     $this->assertEquals($expected, $this->_model->getEntities('entities'));
 }