Example #1
0
 /**
  * @param array $value
  * @param null|string $expected
  * @dataProvider getFileFormatsDataProvider
  */
 public function testGetFileFormats($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\Export\Config($this->_readerMock, $this->_configScopeMock, $this->_cacheId);
     $this->assertEquals($expected, $this->_model->getFileFormats('fileFormats'));
 }