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

Add install-path and type to installedVersions.php and installed.php, add method to get installed packages by type

Issue https://github.com/composer/composer/issues/9648
This commit is contained in:
Jochen Roth 2021-02-25 10:00:36 +01:00 committed by Jordi Boggiano
parent 31cc102850
commit b6c9d34125
No known key found for this signature in database
GPG key ID: 7BBD42C429EC80BC
6 changed files with 131 additions and 6 deletions

View file

@ -18,6 +18,8 @@ use Composer\Json\JsonFile;
class FilesystemRepositoryTest extends TestCase
{
private $root;
public function testRepositoryRead()
{
$json = $this->createJsonFileMock();
@ -121,6 +123,9 @@ class FilesystemRepositoryTest extends TestCase
public function testRepositoryWritesInstalledPhp()
{
$dir = $this->getUniqueTmpDirectory();
$this->root = $dir;
chdir($dir);
$json = new JsonFile($dir.'/installed.json');
$rootPackage = $this->getPackage('__root__', 'dev-master', 'Composer\Package\RootPackage');