-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed Composer resolving to an outdated version of
drupal/coder
. (#237
- Loading branch information
1 parent
1779869
commit 41dfb31
Showing
3 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env bats | ||
|
||
load _helper | ||
|
||
export BATS_FIXTURE_EXPORT_CODEBASE_ENABLED=1 | ||
|
||
@test "Assemble: Drupal 11" { | ||
run .devtools/assemble.sh | ||
assert_success | ||
|
||
assert_output_contains "Initialising Drupal 11 site" | ||
|
||
assert_output_contains "ASSEMBLE COMPLETE" | ||
assert_dir_exists "${BUILD_DIR}/build/vendor" | ||
assert_file_exists "${BUILD_DIR}/build/composer.json" | ||
assert_file_exists "${BUILD_DIR}/build/composer.lock" | ||
|
||
# @see https://github.com/composer/composer/issues/12215 | ||
run composer --working-dir="${BUILD_DIR}/build" require --dev drupal/coder --with-all-dependencies --dry-run | ||
assert_output_not_contains "Upgrading" | ||
} | ||
|
||
@test "Assemble: Drupal 10" { | ||
export DRUPAL_VERSION="10" | ||
|
||
run .devtools/assemble.sh | ||
assert_success | ||
|
||
assert_output_contains "Initialising Drupal 10 site" | ||
|
||
assert_output_contains "ASSEMBLE COMPLETE" | ||
assert_dir_exists "${BUILD_DIR}/build/vendor" | ||
assert_file_exists "${BUILD_DIR}/build/composer.json" | ||
assert_file_exists "${BUILD_DIR}/build/composer.lock" | ||
|
||
# @see https://github.com/composer/composer/issues/12215 | ||
run composer --working-dir="${BUILD_DIR}/build" require --dev drupal/coder --with-all-dependencies --dry-run | ||
assert_output_not_contains "Upgrading" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41dfb31
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Published on https://drupal-extension-scaffold-docs.netlify.app as production
🚀 Deployed on https://67468d441a06b5811ad4aee3--drupal-extension-scaffold-docs.netlify.app