1
0
Fork 0

Fix tests

pull/7925/head
Jordi Boggiano 2019-01-28 15:44:21 +01:00
parent 66a77ed210
commit b7d1f87848
1 changed files with 10 additions and 0 deletions

View File

@ -31,6 +31,11 @@ class ApplicationTest extends TestCase
->with($this->equalTo('--no-plugins')) ->with($this->equalTo('--no-plugins'))
->will($this->returnValue(true)); ->will($this->returnValue(true));
$inputMock->expects($this->at($index++))
->method('hasParameterOption')
->with($this->equalTo('--no-cache'))
->will($this->returnValue(false));
$inputMock->expects($this->at($index++)) $inputMock->expects($this->at($index++))
->method('getParameterOption') ->method('getParameterOption')
->with($this->equalTo(array('--working-dir', '-d'))) ->with($this->equalTo(array('--working-dir', '-d')))
@ -84,6 +89,11 @@ class ApplicationTest extends TestCase
->with($this->equalTo('--no-plugins')) ->with($this->equalTo('--no-plugins'))
->will($this->returnValue(true)); ->will($this->returnValue(true));
$inputMock->expects($this->at($index++))
->method('hasParameterOption')
->with($this->equalTo('--no-cache'))
->will($this->returnValue(false));
$inputMock->expects($this->at($index++)) $inputMock->expects($this->at($index++))
->method('getParameterOption') ->method('getParameterOption')
->with($this->equalTo(array('--working-dir', '-d'))) ->with($this->equalTo(array('--working-dir', '-d')))