Skip to content

Commit 3aace27

Browse files
committed
Add getConfig() to tests
1 parent 8c270ca commit 3aace27

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/DrupalInfoTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public function testInstallOperationWriteInfoFiles()
9191
$manager->getInstaller('drupal-module')->willReturn($installer->reveal());
9292
$this->composer = $this->prophesize(Composer::class);
9393
$this->composer->getInstallationManager()->willReturn($manager->reveal());
94+
$this->composer->getConfig()->willReturn(null);
9495

9596
$this->fixture->activate(
9697
$this->composer->reveal(),
@@ -169,6 +170,7 @@ public function testNoInfoFile()
169170
$manager->getInstaller('drupal-module')->willReturn($installer->reveal());
170171
$this->composer = $this->prophesize(Composer::class);
171172
$this->composer->getInstallationManager()->willReturn($manager->reveal());
173+
$this->composer->getConfig()->willReturn(null);
172174
$this->io->write('<info>No info files found for foo</info>')->shouldBeCalled();
173175
$this->io->isVerbose()->willReturn(true);
174176
$this->fixture->activate(
@@ -242,6 +244,7 @@ public function testRollbackRewrite()
242244
$this->composer = $this->prophesize(Composer::class);
243245
$this->composer->getRepositoryManager()->willReturn($manager->reveal());
244246
$this->composer->getInstallationManager()->willReturn($location_manager->reveal());
247+
$this->composer->getConfig()->willReturn(null);
245248

246249
$this->fixture->activate(
247250
$this->composer->reveal(),

0 commit comments

Comments
 (0)