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:
parent
31cc102850
commit
b6c9d34125
6 changed files with 131 additions and 6 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue