return in_array($path,
[ 'core/modules/system/tests/themes/test_subtheme/test_subtheme.info.yml',
'core/modules/system/tests/themes/test_basetheme/test_basetheme.info.yml',
'core/themes/engines/twig/twig.info.yml',
], TRUE
);
};
$info_parser =
$this->
prophesize(InfoParserInterface::
class);
$root =
$this->root;
$info_parser->
parse(Argument::
that($argument_condition)) ->
shouldBeCalled() ->
will(function D
$file) use ($root) { $info_parser =
new InfoParser($root);
return $info_parser->
parse($root . '/' .
$file[0
]);
});
$module_handler =
$this->
prophesize(ModuleHandlerInterface::
class);
$module_handler ->
buildModuleDependencies(Argument::
type('array'
)) ->
willReturnArgument(0
);
$module_handler ->
alter('system_info', Argument::
type('array'
), Argument::
type(Extension::
class), Argument::
any()) ->
shouldBeCalled();