|
|
@ -145,9 +145,9 @@ class HgDownloaderTest extends TestCase
|
|
|
|
->with($this->equalTo($expectedResetCommand));
|
|
|
|
->with($this->equalTo($expectedResetCommand));
|
|
|
|
$filesystem = $this->getMockBuilder('Composer\Util\Filesystem')->getMock();
|
|
|
|
$filesystem = $this->getMockBuilder('Composer\Util\Filesystem')->getMock();
|
|
|
|
$filesystem->expects($this->once())
|
|
|
|
$filesystem->expects($this->once())
|
|
|
|
->method('removeDirectory')
|
|
|
|
->method('removeDirectoryAsync')
|
|
|
|
->with($this->equalTo('composerPath'))
|
|
|
|
->with($this->equalTo('composerPath'))
|
|
|
|
->will($this->returnValue(true));
|
|
|
|
->will($this->returnValue(\React\Promise\resolve(true)));
|
|
|
|
|
|
|
|
|
|
|
|
$downloader = $this->getDownloaderMock(null, null, $processExecutor, $filesystem);
|
|
|
|
$downloader = $this->getDownloaderMock(null, null, $processExecutor, $filesystem);
|
|
|
|
$downloader->prepare('uninstall', $packageMock, 'composerPath');
|
|
|
|
$downloader->prepare('uninstall', $packageMock, 'composerPath');
|
|
|
|