'name' => 'test name',
'type' => 'test_extension',
'core' => '8.x',
] +
$additional_info_values);
} vfsStream::
create($folders);
foreach ($extension_names as $extension_name) { touch("vfs://drupal_root/example/
$extension_name/
$extension_name.info.yml", 123456789
);
} [$cache,
$info_parser,
$module_handler,
$state] =
$this->
getMocks();
$info_parser->
parse(Argument::
any())->
will(function D
$args) { return Yaml::
decode(file_get_contents('vfs://drupal_root/' .
$args[0
]));
});
$test_extension_list =
new TestExtension('vfs://drupal_root', 'test_extension',
$cache->
reveal(),
$info_parser->
reveal(),
$module_handler->
reveal(),
$state->
reveal(), 'testing'
);
$extension_discovery =
$this->
prophesize(ExtensionDiscovery::
class);
$extension_scan_result =
[];
foreach ($extension_names as $extension_name) { $extension_scan_result[$extension_name] =
new Extension('vfs://drupal_root', 'test_extension', "example/
$extension_name/
$extension_name.info.yml"
);
} $extension_discovery->
scan('test_extension'
)->
willReturn($extension_scan_result);