From b9f770177bf46195f7197311ac279ceb5fc51c7c Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Mon, 26 Mar 2012 13:25:45 +0200 Subject: [PATCH] Fix tests --- tests/Composer/Test/Downloader/HgDownloaderTest.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Downloader/HgDownloaderTest.php b/tests/Composer/Test/Downloader/HgDownloaderTest.php index 8ca89f667..435d7a8dc 100644 --- a/tests/Composer/Test/Downloader/HgDownloaderTest.php +++ b/tests/Composer/Test/Downloader/HgDownloaderTest.php @@ -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');