1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-09 00:22:53 +00:00

Allow querying InstalledVersions::isInstalled() for no-dev packages

This commit is contained in:
Nicolas Grekas 2021-02-09 11:36:19 +01:00
parent 03e8cacd12
commit 7d4501816c
6 changed files with 37 additions and 11 deletions

View file

@ -130,6 +130,7 @@ class FilesystemRepositoryTest extends TestCase
$rootPackage = $this->getAliasPackage($rootPackage, '1.10.x-dev');
$repository = new FilesystemRepository($json, true, $rootPackage);
$repository->setDevPackageNames(array('c/c'));
$pkg = $this->getPackage('a/provider', '1.1');
$this->configureLinks($pkg, array('provide' => array('foo/impl' => '^1.1', 'foo/impl2' => '2.0')));
$pkg->setDistReference('distref-as-no-source');