Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
3a14d1cb
Commit
3a14d1cb
authored
Dec 23, 2021
by
Alex Pott
Committed by
Jess
Dec 24, 2021
Browse files
Issue
#3255836
by alexpott, clayfreeman, dww, benjifisher, Spokje: Test fails due to Composer 2.2
(cherry picked from commit
638c8bdb
)
parent
84de247c
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php
View file @
3a14d1cb
...
...
@@ -81,7 +81,7 @@ public function testComposerHooks() {
// project is "allowed" in our main fixture project, but not required.
// We expect that requiring this library should re-scaffold, resulting
// in a changed default.settings.php file.
$stdout
=
$this
->
mustExec
(
"composer require --no-ansi --no-interaction fixtures/scaffold-override-fixture:dev-master"
,
$sut
);
$stdout
=
$this
->
mustExec
(
"composer require --no-ansi --no-interaction
fixtures/drupal-assets-fixture:dev-master
fixtures/scaffold-override-fixture:dev-master"
,
$sut
);
$this
->
assertScaffoldedFile
(
$sut
.
'/sites/default/default.settings.php'
,
FALSE
,
'scaffolded from the scaffold-override-fixture'
);
// Make sure that the appropriate notice informing us that scaffolding
// is allowed was printed.
...
...
@@ -120,7 +120,7 @@ public function testComposerHooks() {
$this
->
mustExec
(
"composer install --no-ansi"
,
$sut
);
// Require a project that is not allowed to scaffold and confirm that we
// get a warning, and it does not scaffold.
$stdout
=
$this
->
mustExec
(
"composer require --no-ansi --no-interaction fixtures/scaffold-override-fixture:dev-master"
,
$sut
);
$stdout
=
$this
->
mustExec
(
"composer require --no-ansi --no-interaction
fixtures/drupal-assets-fixture:dev-master
fixtures/scaffold-override-fixture:dev-master"
,
$sut
);
$this
->
assertFileDoesNotExist
(
$sut
.
'/sites/default/default.settings.php'
);
$this
->
assertStringContainsString
(
"Not scaffolding files for fixtures/scaffold-override-fixture, because it is not listed in the element 'extra.drupal-scaffold.allowed-packages' in the root-level composer.json file."
,
$stdout
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment