function ComposerPluginsValidatorTestBase::doTestValidationDuringPreApply
Tests composer plugins are validated during pre-apply.
4 calls to ComposerPluginsValidatorTestBase::doTestValidationDuringPreApply()
- ComposerPluginsValidatorComplexInvalidTest::testValidationDuringPreApply in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorComplexInvalidTest.php - Tests composer plugins are validated during pre-apply.
- ComposerPluginsValidatorSimpleInvalidTest::testValidationDuringPreApply in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorSimpleInvalidTest.php - Tests composer plugins are validated during pre-apply.
- ComposerPluginsValidatorSimpleValidTest::testValidationDuringPreApply in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorSimpleValidTest.php - Tests composer plugins are validated during pre-apply.
- ComposerPluginsValidatorTestBase::doTestValidationAfterTrustingDuringPreApply in core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorTestBase.php - Tests additional composer plugins can be trusted during pre-apply.
File
-
core/
modules/ package_manager/ tests/ src/ Kernel/ ComposerPluginsValidatorTestBase.php, line 40
Class
- ComposerPluginsValidatorTestBase
- @group package_manager @internal
Namespace
Drupal\Tests\package_manager\KernelCode
protected function doTestValidationDuringPreApply(array $composer_config_to_add, array $packages_to_add, array $expected_results) : void {
$stage_manipulator = $this->getStageFixtureManipulator();
if ($composer_config_to_add) {
$stage_manipulator->addConfig($composer_config_to_add);
}
foreach ($packages_to_add as $package) {
$stage_manipulator->addPackage($package);
}
// Ensure \Drupal\package_manager\Validator\SupportedReleaseValidator does
// not complain.
$release_fixture_folder = __DIR__ . '/../../fixtures/release-history';
$this->setReleaseMetadata([
'semver_test' => "{$release_fixture_folder}/semver_test.1.1.xml",
]);
$this->assertResults($expected_results, PreApplyEvent::class);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.