Fix test
parent
bdf1f7f82b
commit
8fe2b9ec69
|
@ -99,7 +99,13 @@ class ComposerRepositoryTest extends TestCase
|
||||||
public function testWhatProvides()
|
public function testWhatProvides()
|
||||||
{
|
{
|
||||||
$repo = $this->getMockBuilder('Composer\Repository\ComposerRepository')
|
$repo = $this->getMockBuilder('Composer\Repository\ComposerRepository')
|
||||||
->disableOriginalConstructor()
|
->setConstructorArgs(array(
|
||||||
|
array('url' => 'https://dummy.test.link'),
|
||||||
|
new NullIO,
|
||||||
|
FactoryMock::createConfig(),
|
||||||
|
$this->getMockBuilder('Composer\Util\HttpDownloader')->disableOriginalConstructor()->getMock(),
|
||||||
|
$this->getMockBuilder('Composer\EventDispatcher\EventDispatcher')->disableOriginalConstructor()->getMock()
|
||||||
|
))
|
||||||
->setMethods(array('fetchFile'))
|
->setMethods(array('fetchFile'))
|
||||||
->getMock();
|
->getMock();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue