From 1df28c4f702045a33865d29d00ef430d8138579b Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 6 Aug 2026 02:40:17 +0900 Subject: test(plugin): compare a composer/installers run against upstream Composer The fixture project pins composer/installers 2.3.0 and requires two packages of framework-specific types, so the plugin's LibraryInstaller subclass decides where they land. Upstream Composer and Shirabe install the same project and the whole resulting tree is compared. The plugin tarball is fetched by `fixtures/e2e-installers/fetch` into a git-ignored directory and pinned by a digest over the extracted files, so the third-party source never enters this repository and the test skips itself while the directory is absent. The tree is staged and only moved into place once verified, so an unverified tree is never observable under the name the test looks for. --- .../fixtures/e2e-installers/packages/hello-module/composer.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 crates/shirabe/tests/plugin/fixtures/e2e-installers/packages/hello-module/composer.json (limited to 'crates/shirabe/tests/plugin/fixtures/e2e-installers/packages/hello-module/composer.json') diff --git a/crates/shirabe/tests/plugin/fixtures/e2e-installers/packages/hello-module/composer.json b/crates/shirabe/tests/plugin/fixtures/e2e-installers/packages/hello-module/composer.json new file mode 100644 index 00000000..7f55c074 --- /dev/null +++ b/crates/shirabe/tests/plugin/fixtures/e2e-installers/packages/hello-module/composer.json @@ -0,0 +1,6 @@ +{ + "name": "acme/hello-module", + "version": "1.0.0", + "type": "drupal-module", + "description": "Fixture package placed by composer/installers under modules/." +} -- cgit v1.3.1