1
0
Fork 0
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:
Jordi Boggiano 2016-05-05 14:06:04 +01:00
parent 92207da83a
commit 591cbcee12
2 changed files with 14 additions and 6 deletions

View file

@ -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));