From 48ae45e5fe8da00aaf4aef5ab9bf9eacccfe5561 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Tue, 29 Oct 2019 23:16:38 +0100 Subject: [PATCH] Correct github issue test to include a lock file, still fails because of real bug now --- .../Fixtures/installer/github-issues-4795.test | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/tests/Composer/Test/Fixtures/installer/github-issues-4795.test b/tests/Composer/Test/Fixtures/installer/github-issues-4795.test index 1f4b1af27..4afac72aa 100644 --- a/tests/Composer/Test/Fixtures/installer/github-issues-4795.test +++ b/tests/Composer/Test/Fixtures/installer/github-issues-4795.test @@ -30,13 +30,28 @@ dependency of one the requirements that is whitelisted for update. { "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } } ] +--LOCK-- +{ + "packages": [ + { "name": "a/a", "version": "1.0.0" }, + { "name": "b/b", "version": "1.0.0", "require": { "a/a": "~1.0" } } + ], + "packages-dev": [], + "aliases": [], + "minimum-stability": "dev", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [] +} --RUN-- update b/b --with-dependencies --EXPECT-OUTPUT-- Dependency "a/a" is also a root requirement, but is not explicitly whitelisted. Ignoring. Loading composer repositories with package information -Updating dependencies (including require-dev) +Updating dependencies Nothing to install or update Writing lock file Generating autoload files