From 681043355f4d7d6a9a2d4885760a689291711a87 Mon Sep 17 00:00:00 2001 From: nevvermind Date: Mon, 18 Jan 2016 19:14:23 +0000 Subject: [PATCH] Update test fixtures + fix test --- tests/Composer/Test/Plugin/Fixtures/plugin-v1/composer.json | 2 +- tests/Composer/Test/Plugin/Fixtures/plugin-v2/composer.json | 2 +- tests/Composer/Test/Plugin/Fixtures/plugin-v3/composer.json | 2 +- tests/Composer/Test/Plugin/Fixtures/plugin-v4/composer.json | 2 +- tests/Composer/Test/Plugin/PluginInstallerTest.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Composer/Test/Plugin/Fixtures/plugin-v1/composer.json b/tests/Composer/Test/Plugin/Fixtures/plugin-v1/composer.json index ebe56e425..574c4402f 100644 --- a/tests/Composer/Test/Plugin/Fixtures/plugin-v1/composer.json +++ b/tests/Composer/Test/Plugin/Fixtures/plugin-v1/composer.json @@ -7,6 +7,6 @@ "class": "Installer\\Plugin" }, "require": { - "composer-plugin-api": "*" + "composer-plugin-api": "^1.0" } } diff --git a/tests/Composer/Test/Plugin/Fixtures/plugin-v2/composer.json b/tests/Composer/Test/Plugin/Fixtures/plugin-v2/composer.json index 7a011070d..27432acfa 100644 --- a/tests/Composer/Test/Plugin/Fixtures/plugin-v2/composer.json +++ b/tests/Composer/Test/Plugin/Fixtures/plugin-v2/composer.json @@ -7,6 +7,6 @@ "class": "Installer\\Plugin2" }, "require": { - "composer-plugin-api": "*" + "composer-plugin-api": "^1.0" } } diff --git a/tests/Composer/Test/Plugin/Fixtures/plugin-v3/composer.json b/tests/Composer/Test/Plugin/Fixtures/plugin-v3/composer.json index 2061a07e3..881eb5cae 100644 --- a/tests/Composer/Test/Plugin/Fixtures/plugin-v3/composer.json +++ b/tests/Composer/Test/Plugin/Fixtures/plugin-v3/composer.json @@ -7,6 +7,6 @@ "class": "Installer\\Plugin2" }, "require": { - "composer-plugin-api": "*" + "composer-plugin-api": "^1.0" } } diff --git a/tests/Composer/Test/Plugin/Fixtures/plugin-v4/composer.json b/tests/Composer/Test/Plugin/Fixtures/plugin-v4/composer.json index 982d34c7b..f61cb3fbd 100644 --- a/tests/Composer/Test/Plugin/Fixtures/plugin-v4/composer.json +++ b/tests/Composer/Test/Plugin/Fixtures/plugin-v4/composer.json @@ -10,6 +10,6 @@ ] }, "require": { - "composer-plugin-api": "1.0.0" + "composer-plugin-api": "^1.0" } } diff --git a/tests/Composer/Test/Plugin/PluginInstallerTest.php b/tests/Composer/Test/Plugin/PluginInstallerTest.php index 32602cd03..a01a018d9 100644 --- a/tests/Composer/Test/Plugin/PluginInstallerTest.php +++ b/tests/Composer/Test/Plugin/PluginInstallerTest.php @@ -147,7 +147,7 @@ class PluginInstallerTest extends TestCase $this->repository ->expects($this->exactly(2)) ->method('getPackages') - ->will($this->returnValue(array())); + ->will($this->returnValue(array($this->packages[3]))); $installer = new PluginInstaller($this->io, $this->composer); $this->pm->loadInstalledPlugins();