function ComposerPluginsValidatorTestBase::doTestValidationDuringPreCreate
Tests composer plugins are validated during pre-create.
4 calls to ComposerPluginsValidatorTestBase::doTestValidationDuringPreCreate()
- ComposerPluginsValidatorComplexInvalidTest::testValidationDuringPreCreate in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorComplexInvalidTest.php - Tests composer plugins are validated during pre-create.
- ComposerPluginsValidatorSimpleInvalidTest::testValidationDuringPreCreate in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorSimpleInvalidTest.php - Tests composer plugins are validated during pre-create.
- ComposerPluginsValidatorSimpleValidTest::testValidationDuringPreCreate in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorSimpleValidTest.php - Tests composer plugins are validated during pre-create.
- ComposerPluginsValidatorTestBase::doTestValidationAfterTrustingDuringPreCreate in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorTestBase.php - Tests additional composer plugins can be trusted during pre-create.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorTestBase.php, line 23
Class
- ComposerPluginsValidatorTestBase
- @group package_manager @internal
Namespace
Drupal\Tests\package_manager\KernelCode
protected function doTestValidationDuringPreCreate(array $composer_config_to_add, array $packages_to_add, array $expected_results) : void {
$active_manipulator = new ActiveFixtureManipulator();
if ($composer_config_to_add) {
$active_manipulator->addConfig($composer_config_to_add);
}
foreach ($packages_to_add as $package) {
$active_manipulator->addPackage($package);
}
$active_manipulator->commitChanges();
$this->assertStatusCheckResults($expected_results);
$this->assertResults($expected_results, PreCreateEvent::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.