Fix tests, refs #8292
parent
089fcde6cf
commit
6fee17f16c
|
@ -25,7 +25,13 @@ class ApplicationTest extends TestCase
|
||||||
$inputMock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
|
$inputMock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
|
||||||
$outputMock = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock();
|
$outputMock = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock();
|
||||||
|
|
||||||
|
putenv('COMPOSER_NO_INTERACTION=1');
|
||||||
|
|
||||||
$index = 0;
|
$index = 0;
|
||||||
|
$inputMock->expects($this->at($index++))
|
||||||
|
->method('setInteractive')
|
||||||
|
->with($this->equalTo(false));
|
||||||
|
|
||||||
$inputMock->expects($this->at($index++))
|
$inputMock->expects($this->at($index++))
|
||||||
->method('hasParameterOption')
|
->method('hasParameterOption')
|
||||||
->with($this->equalTo('--no-plugins'))
|
->with($this->equalTo('--no-plugins'))
|
||||||
|
@ -83,7 +89,13 @@ class ApplicationTest extends TestCase
|
||||||
$inputMock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
|
$inputMock = $this->getMockBuilder('Symfony\Component\Console\Input\InputInterface')->getMock();
|
||||||
$outputMock = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock();
|
$outputMock = $this->getMockBuilder('Symfony\Component\Console\Output\OutputInterface')->getMock();
|
||||||
|
|
||||||
|
putenv('COMPOSER_NO_INTERACTION=1');
|
||||||
|
|
||||||
$index = 0;
|
$index = 0;
|
||||||
|
$inputMock->expects($this->at($index++))
|
||||||
|
->method('setInteractive')
|
||||||
|
->with($this->equalTo(false));
|
||||||
|
|
||||||
$inputMock->expects($this->at($index++))
|
$inputMock->expects($this->at($index++))
|
||||||
->method('hasParameterOption')
|
->method('hasParameterOption')
|
||||||
->with($this->equalTo('--no-plugins'))
|
->with($this->equalTo('--no-plugins'))
|
||||||
|
|
Loading…
Reference in New Issue