function ComposerInspectorTest::providerAllowedPlugins
Data provider for ::testAllowedPlugins().
Return value
array[] The test cases.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerInspectorTest.php, line 469
Class
- ComposerInspectorTest
- @coversDefaultClass \Drupal\package_manager\ComposerInspector
Namespace
Drupal\Tests\package_manager\KernelCode
public static function providerAllowedPlugins() : array {
return [
'all plugins allowed' => [
[
'allow-plugins' => TRUE,
],
TRUE,
],
'no plugins allowed' => [
[
'allow-plugins' => FALSE,
],
[],
],
'some plugins allowed' => [
[
'allow-plugins.example/plugin-a' => TRUE,
'allow-plugins.example/plugin-b' => FALSE,
],
[
'example/plugin-a' => TRUE,
'example/plugin-b' => FALSE,
// The scaffold plugin is explicitly disallowed by the fake_site
// fixture.
'drupal/core-composer-scaffold' => FALSE,
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.