mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Make platform-check only check non-dev requires, refs #9412
This commit is contained in:
parent
8c1355f448
commit
56c65a58e2
8 changed files with 82 additions and 11 deletions
|
@ -84,7 +84,7 @@ class FilesystemRepositoryTest extends TestCase
|
|||
$im = $this->getMockBuilder('Composer\Installer\InstallationManager')
|
||||
->disableOriginalConstructor()
|
||||
->getMock();
|
||||
$im->expects($this->once())
|
||||
$im->expects($this->exactly(2))
|
||||
->method('getInstallPath')
|
||||
->will($this->returnValue('/foo/bar/vendor/woop/woop'));
|
||||
|
||||
|
@ -104,10 +104,16 @@ class FilesystemRepositoryTest extends TestCase
|
|||
->expects($this->once())
|
||||
->method('write')
|
||||
->with(array(
|
||||
'packages' => array(array('name' => 'mypkg', 'type' => 'library', 'version' => '0.1.10', 'version_normalized' => '0.1.10.0', 'install-path' => '../woop/woop')),
|
||||
'packages' => array(
|
||||
array('name' => 'mypkg', 'type' => 'library', 'version' => '0.1.10', 'version_normalized' => '0.1.10.0', 'install-path' => '../woop/woop'),
|
||||
array('name' => 'mypkg2', 'type' => 'library', 'version' => '1.2.3', 'version_normalized' => '1.2.3.0', 'install-path' => '../woop/woop'),
|
||||
),
|
||||
'dev' => true,
|
||||
'dev-package-names' => array('mypkg2'),
|
||||
));
|
||||
|
||||
$repository->setDevPackageNames(array('mypkg2'));
|
||||
$repository->addPackage($this->getPackage('mypkg2', '1.2.3'));
|
||||
$repository->addPackage($this->getPackage('mypkg', '0.1.10'));
|
||||
$repository->write(true, $im);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue