From d0829adfee7be7c3b618820c4e12038b7bb12680 Mon Sep 17 00:00:00 2001 From: Mateusz Heleniak Date: Sat, 1 Sep 2012 00:30:48 +0200 Subject: [PATCH] added test case --- .../installer/install-dev-using-dist.test | 46 +++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 tests/Composer/Test/Fixtures/installer/install-dev-using-dist.test diff --git a/tests/Composer/Test/Fixtures/installer/install-dev-using-dist.test b/tests/Composer/Test/Fixtures/installer/install-dev-using-dist.test new file mode 100644 index 000000000..8517152a2 --- /dev/null +++ b/tests/Composer/Test/Fixtures/installer/install-dev-using-dist.test @@ -0,0 +1,46 @@ +--TEST-- +Installs a dev package from lock using dist +--COMPOSER-- +{ + "repositories": [ + { + "type": "package", + "package": [ + { + "name": "a/a", + "version": "dev-master", + "version_normalized": "9999999-dev", + "dist": { + "type": "zip", + "url": "http://www.example.com/dist.zip", + "reference": "459720ff3b74ee0c0d159277c6f2f5df89d8a4f6" + } + } + ] + } + ], + "require": { + "a/a": "dev-master" + }, + "minimum-stability": "dev" +} +--RUN-- +install --prefer-dist +--EXPECT-LOCK-- +{ + "packages": [ + { + "version": "dev-master", + "package": "a/a", + "source-reference": "459720ff3b74ee0c0d159277c6f2f5df89d8a4f6" + } + ], + "packages-dev": null, + "aliases": [], + "minimum-stability": "dev", + "stability-flags": { + "a/a": 20 + } +} +--EXPECT-- +Installing a/a (dev-master)