1
0
Fork 0

Fix tests

pull/501/head
Jordi Boggiano 2012-03-26 13:25:45 +02:00
parent 5be7f4cf09
commit b9f770177b
1 changed files with 4 additions and 2 deletions

View File

@ -52,7 +52,8 @@ class HgDownloaderTest extends \PHPUnit_Framework_TestCase
$processExecutor = $this->getMock('Composer\Util\ProcessExecutor');
$processExecutor->expects($this->once())
->method('execute')
->with($this->equalTo($expectedGitCommand));
->with($this->equalTo($expectedGitCommand))
->will($this->returnValue(0));
$downloader = $this->getDownloaderMock(null, $processExecutor);
$downloader->download($packageMock, 'composerPath');
@ -91,7 +92,8 @@ class HgDownloaderTest extends \PHPUnit_Framework_TestCase
->with($this->equalTo($expectedResetCommand));
$processExecutor->expects($this->at(1))
->method('execute')
->with($this->equalTo($expectedUpdateCommand));
->with($this->equalTo($expectedUpdateCommand))
->will($this->returnValue(0));
$downloader = $this->getDownloaderMock(null, $processExecutor);
$downloader->update($packageMock, $packageMock, 'composerPath');