Fix tests breaking on a api version bump
Make generic plugins work with many API versions as opposed to just 1.0.0.pull/4124/head
parent
2051d74774
commit
58ded13eb9
|
@ -7,6 +7,6 @@
|
|||
"class": "Installer\\Plugin"
|
||||
},
|
||||
"require": {
|
||||
"composer-plugin-api": "1.0.0"
|
||||
"composer-plugin-api": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"class": "Installer\\Plugin2"
|
||||
},
|
||||
"require": {
|
||||
"composer-plugin-api": "1.0.0"
|
||||
"composer-plugin-api": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,6 @@
|
|||
"class": "Installer\\Plugin2"
|
||||
},
|
||||
"require": {
|
||||
"composer-plugin-api": "1.0.0"
|
||||
"composer-plugin-api": "*"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -249,24 +249,6 @@ class PluginInstallerTest extends TestCase
|
|||
$this->pm->loadInstalledPlugins();
|
||||
}
|
||||
|
||||
public function testExactPluginVersionStyleAreRegisteredCorrectly()
|
||||
{
|
||||
$pluginsWithFixedAPIVersions = array(
|
||||
$this->packages[0],
|
||||
$this->packages[1],
|
||||
$this->packages[2],
|
||||
);
|
||||
|
||||
$this->setPluginApiVersionWithPlugins('1.0.0', $pluginsWithFixedAPIVersions);
|
||||
$this->assertCount(3, $this->pm->getPlugins());
|
||||
|
||||
$this->setPluginApiVersionWithPlugins('1.0.1', $pluginsWithFixedAPIVersions);
|
||||
$this->assertCount(0, $this->pm->getPlugins());
|
||||
|
||||
$this->setPluginApiVersionWithPlugins('2.0.0-dev', $pluginsWithFixedAPIVersions);
|
||||
$this->assertCount(0, $this->pm->getPlugins());
|
||||
}
|
||||
|
||||
public function testStarPluginVersionWorksWithAnyAPIVersion()
|
||||
{
|
||||
$starVersionPlugin = array($this->packages[4]);
|
||||
|
|
Loading…
Reference in New Issue