mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Fix locking behavior with --dev
This commit is contained in:
parent
f63df842b3
commit
a1306091f2
3 changed files with 28 additions and 11 deletions
|
@ -22,9 +22,13 @@ class LockerTest extends \PHPUnit_Framework_TestCase
|
|||
$locker = new Locker($json, $this->createRepositoryManagerMock(), 'md5');
|
||||
|
||||
$json
|
||||
->expects($this->once())
|
||||
->expects($this->any())
|
||||
->method('exists')
|
||||
->will($this->returnValue(true));
|
||||
$json
|
||||
->expects($this->any())
|
||||
->method('read')
|
||||
->will($this->returnValue(array('packages' => array())));
|
||||
|
||||
$this->assertTrue($locker->isLocked());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue