Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3493742
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3493742
Commits
44f5b27a
Commit
44f5b27a
authored
2 years ago
by
catch
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3283795
by alexpott, bircher: ComposerHooksTest is broken on latest DrupalCI PHP container
(cherry picked from commit
77702ce7
)
parent
eff5ecd6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php
+2
-2
2 additions, 2 deletions
.../Composer/Plugin/Scaffold/Functional/ComposerHookTest.php
with
2 additions
and
2 deletions
core/tests/Drupal/Tests/Composer/Plugin/Scaffold/Functional/ComposerHookTest.php
+
2
−
2
View file @
44f5b27a
...
...
@@ -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/drupal-assets-fixture:dev-ma
ster
fixtures/scaffold-override-fixture:dev-ma
ster
"
,
$sut
);
$stdout
=
$this
->
mustExec
(
"composer require --no-ansi --no-interaction fixtures/drupal-assets-fixture:dev-ma
in
fixtures/scaffold-override-fixture:dev-ma
in
"
,
$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/drupal-assets-fixture:dev-ma
ster
fixtures/scaffold-override-fixture:dev-ma
ster
"
,
$sut
);
$stdout
=
$this
->
mustExec
(
"composer require --no-ansi --no-interaction fixtures/drupal-assets-fixture:dev-ma
in
fixtures/scaffold-override-fixture:dev-ma
in
"
,
$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
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment