mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Avoiding defining plugin commands using the local project plugins, refs #5277
This commit is contained in:
parent
92207da83a
commit
591cbcee12
2 changed files with 14 additions and 6 deletions
|
@ -25,12 +25,12 @@ class ApplicationTest extends TestCase
|
|||
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
||||
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
||||
|
||||
$inputMock->expects($this->once())
|
||||
$inputMock->expects($this->any())
|
||||
->method('hasParameterOption')
|
||||
->with($this->equalTo('--no-plugins'))
|
||||
->will($this->returnValue(true));
|
||||
|
||||
$inputMock->expects($this->once())
|
||||
$inputMock->expects($this->any())
|
||||
->method('getFirstArgument')
|
||||
->will($this->returnValue('list'));
|
||||
|
||||
|
@ -73,7 +73,7 @@ class ApplicationTest extends TestCase
|
|||
$inputMock = $this->getMock('Symfony\Component\Console\Input\InputInterface');
|
||||
$outputMock = $this->getMock('Symfony\Component\Console\Output\OutputInterface');
|
||||
|
||||
$inputMock->expects($this->once())
|
||||
$inputMock->expects($this->any())
|
||||
->method('getFirstArgument')
|
||||
->will($this->returnValue($command));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue