46 $config = new \Magento\Framework\Interception\ObjectManager\Config\Developer();
47 $factory = new \Magento\Framework\ObjectManager\Factory\Dynamic\Developer(
$config,
null);
49 $this->_configReader = $this->createMock(\
Magento\Framework\Config\ReaderInterface::class);
50 $this->_configReader->expects(
55 $this->returnValue($pluginConfig)
58 $areaList = $this->createMock(\
Magento\Framework\
App\AreaList::class);
59 $areaList->expects($this->any())->method(
'getCodes')->will($this->returnValue([]));
60 $configScope = new \Magento\Framework\Config\Scope($areaList,
'global');
61 $cache = $this->createMock(\
Magento\Framework\Config\CacheInterface::class);
62 $cache->expects($this->any())->method(
'load')->will($this->returnValue(
false));
63 $definitions = new \Magento\Framework\ObjectManager\Definition\Runtime();
64 $relations = new \Magento\Framework\ObjectManager\Relations\Runtime();
65 $interceptionConfig =
new Config\Config(
73 $interceptionDefinitions =
new Definition\Runtime();
74 $json = new \Magento\Framework\Serialize\Serializer\Json();
76 \Magento\Framework\Config\CacheInterface::class =>
$cache,
77 \Magento\Framework\Config\ScopeInterface::class => $configScope,
79 \Magento\Framework\ObjectManager\RelationsInterface::class => $relations,
80 \Magento\Framework\ObjectManager\ConfigInterface::class =>
$config,
81 \Magento\Framework\Interception\ObjectManager\ConfigInterface::class =>
$config,
82 \Magento\Framework\ObjectManager\DefinitionInterface::class => $definitions,
83 \Magento\Framework\Interception\DefinitionInterface::class => $interceptionDefinitions,
84 \Magento\Framework\Serialize\SerializerInterface::class => $json,
86 $this->_objectManager = new \Magento\Framework\ObjectManager\ObjectManager(
91 $factory->setObjectManager($this->_objectManager);
93 $config->setInterceptionConfig($interceptionConfig);
97 \
Magento\Framework\Interception\PluginListInterface::class =>
98 \
Magento\Framework\Interception\PluginList\PluginList::class,
99 \
Magento\Framework\Interception\ChainInterface::class =>
100 \
Magento\Framework\Interception\Chain\Chain::class,