Skip to content

Commit

Permalink
Merge branch 'main' into feat/multi-check-pack
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm authored Oct 17, 2023
2 parents 7d84a65 + b778aa3 commit 71b67cc
Show file tree
Hide file tree
Showing 3 changed files with 5,094 additions and 0 deletions.
22 changes: 22 additions & 0 deletions tests/Integration/PackageToCheckTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace Violinist\ComposerUpdater\Tests\Integration;

use Violinist\ComposerUpdater\Updater;
use Violinist\ComposerUpdater\Exception\ComposerUpdateProcessFailedException;

class PackageToCheckTest extends IntegrationBase
{
protected $package = 'drupal/captcha';
protected $directory = 'drupal-captcha';

protected function createUpdater($directory)
{
if (version_compare(phpversion(), "7.3.0", "<")) {
self::expectException(ComposerUpdateProcessFailedException::class);
}
$updater = new Updater($directory, 'drupal/recaptcha');
$updater->setPackageToCheckHasUpdated($this->package);
return $updater;
}
}
98 changes: 98 additions & 0 deletions tests/assets/drupal-captcha/composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"name": "drupal/recommended-project",
"description": "Project template for Drupal 9 projects with a relocated document root",
"type": "project",
"license": "GPL-2.0-or-later",
"homepage": "https://www.drupal.org/project/drupal",
"support": {
"docs": "https://www.drupal.org/docs/user_guide/en/index.html",
"chat": "https://www.drupal.org/node/314178"
},
"repositories": [
{
"type": "composer",
"url": "https://packages.drupal.org/8"
}
],
"require": {
"composer/installers": "^1.9",
"drupal/core-composer-scaffold": "^9.5",
"drupal/core-project-message": "^9.5",
"drupal/core-recommended": "^9.5",
"drupal/recaptcha": "^3.2"
},
"conflict": {
"drupal/drupal": "*"
},
"minimum-stability": "stable",
"prefer-stable": true,
"config": {
"allow-plugins": {
"composer/installers": true,
"drupal/core-composer-scaffold": true,
"drupal/core-project-message": true,
"dealerdirect/phpcodesniffer-composer-installer": true
},
"sort-packages": true
},
"extra": {
"violinist": {
"allow_update_indirect_with_direct": true
},
"drupal-scaffold": {
"locations": {
"web-root": "web/"
}
},
"installer-paths": {
"web/core": [
"type:drupal-core"
],
"web/libraries/{$name}": [
"type:drupal-library"
],
"web/modules/contrib/{$name}": [
"type:drupal-module"
],
"web/profiles/contrib/{$name}": [
"type:drupal-profile"
],
"web/themes/contrib/{$name}": [
"type:drupal-theme"
],
"drush/Commands/contrib/{$name}": [
"type:drupal-drush"
],
"web/modules/custom/{$name}": [
"type:drupal-custom-module"
],
"web/profiles/custom/{$name}": [
"type:drupal-custom-profile"
],
"web/themes/custom/{$name}": [
"type:drupal-custom-theme"
]
},
"drupal-core-project-message": {
"include-keys": [
"homepage",
"support"
],
"post-create-project-cmd-message": [
"<bg=blue;fg=white> </>",
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>",
"<bg=blue;fg=white> from the drupal/recommended-project template! </>",
"<bg=blue;fg=white> </>",
"",
"<bg=yellow;fg=black>Next steps</>:",
" * Install the site: https://www.drupal.org/docs/installing-drupal",
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html",
" * Get support: https://www.drupal.org/support",
" * Get involved with the Drupal community:",
" https://www.drupal.org/getting-involved",
" * Remove the plugin that prints this message:",
" composer remove drupal/core-project-message"
]
}
}
}
Loading

0 comments on commit 71b67cc

Please sign in to comment.