27 $this->dependenciesParserMock = $this->createMock(\
Magento\
Setup\
Module\Dependency\ParserInterface::class);
28 $this->reportWriterMock = $this->createMock(\
Magento\
Setup\
Module\Dependency\Report\WriterInterface::class);
30 $this->builder = $this->getMockForAbstractClass(
32 [
'dependenciesParser' => $this->dependenciesParserMock,
'reportWriter' => $this->reportWriterMock]
52 return [[[
'write' => [1, 2]]], [[
'parse' => [],
'write' => [1, 2]]]];
71 return [[[
'parse' => [1, 2]]], [[
'parse' => [1, 2],
'write' => []]]];
77 'parse' => [
'files_for_parse' => [1, 2, 3]],
78 'write' => [
'report_filename' =>
'some_filename'],
81 $parseResult = [
'foo',
'bar',
'baz'];
82 $configMock = $this->createMock(\
Magento\
Setup\
Module\Dependency\Report\Data\ConfigInterface::class);
84 $this->dependenciesParserMock->expects(
91 $this->returnValue($parseResult)
93 $this->builder->expects(
100 $this->returnValue($configMock)
102 $this->reportWriterMock->expects($this->once())->method(
'write')->with(
$options[
'write'], $configMock);
testBuildWithWrongWriteOptions($options)
testBuildWithWrongParseOptions($options)
dataProviderWrongParseOptions()
dataProviderWrongWriteOptions()