$this->t('Any packages other than the implicitly allowed packages are not allowed to scaffold files. See <a href=":url">the scaffold documentation</a> for more information.',[
* Tests that the allowed-packages setting is validated during pre-create.
*/
publicfunctiontestPreCreate():void{
(newActiveFixtureManipulator())->addConfig([
'extra.drupal-scaffold.allowed-packages'=>[
"drupal/dummy_scaffolding",
"drupal/dummy_scaffolding_2",
],
])->commitChanges()->updateLock();
$result=ValidationResult::createError(
[
$this->t("drupal/dummy_scaffolding"),
$this->t("drupal/dummy_scaffolding_2"),
],
$this->t('Any packages other than the implicitly allowed packages are not allowed to scaffold files. See <a href="https://www.drupal.org/docs/develop/using-composer/using-drupals-composer-scaffold">the scaffold documentation</a> for more information.')
* Tests that the allowed-packages setting is validated during pre-apply.
*/
publicfunctiontestPreApply():void{
$this->getStageFixtureManipulator()
->addConfig([
'extra.drupal-scaffold.allowed-packages'=>[
"drupal/dummy_scaffolding",
],
],TRUE);
$result=ValidationResult::createError(
[
$this->t("drupal/dummy_scaffolding"),
],
$this->t('Any packages other than the implicitly allowed packages are not allowed to scaffold files. See <a href="https://www.drupal.org/docs/develop/using-composer/using-drupals-composer-scaffold">the scaffold documentation</a> for more information.')