Skip to content
Snippets Groups Projects

Issue #3437409 ForbidCoreChangesValidator.php

Merged Ted Bowman requested to merge issue/automatic_updates-3437409:3437409-dont-allow-core into 3.0.x
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
@@ -21,7 +21,7 @@ class ForbidCoreChangesValidatorTest extends AutomaticUpdatesExtensionsKernelTes
@@ -21,7 +21,7 @@ class ForbidCoreChangesValidatorTest extends AutomaticUpdatesExtensionsKernelTes
* An array of the staged versions where the keys are the package names and
* An array of the staged versions where the keys are the package names and
* the values are the package versions or NULL if the package should be
* the values are the package versions or NULL if the package should be
* removed in the stage.
* removed in the stage.
* @param string[] $new_packages
* @param string[][] $new_packages
* An array of the new packages to add to the stage.
* An array of the new packages to add to the stage.
* @param ValidationResult[] $expected_results
* @param ValidationResult[] $expected_results
* The expected validation results.
* The expected validation results.
@@ -49,6 +49,7 @@ class ForbidCoreChangesValidatorTest extends AutomaticUpdatesExtensionsKernelTes
@@ -49,6 +49,7 @@ class ForbidCoreChangesValidatorTest extends AutomaticUpdatesExtensionsKernelTes
foreach ($new_packages as $package) {
foreach ($new_packages as $package) {
$this->getStageFixtureManipulator()->addPackage($package);
$this->getStageFixtureManipulator()->addPackage($package);
}
}
 
$this->getStageFixtureManipulator()->setVersion('drupal/semver_test', '8.1.1');
$stage = $this->container->get(ExtensionUpdateStage::class);
$stage = $this->container->get(ExtensionUpdateStage::class);
$stage->begin([
$stage->begin([
Loading