1
0
Fork 0

Fix tests

pull/8777/head^2
Jordi Boggiano 2020-04-23 10:29:22 +02:00
parent fa14cd1353
commit 8a1e9744a0
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ class SuggestedPackagesReporterTest extends TestCase
*/ */
public function testOutputSkipInstalledPackages() public function testOutputSkipInstalledPackages()
{ {
$repository = $this->getMockBuilder('Composer\Repository\RepositoryInterface')->getMock(); $repository = $this->getMockBuilder('Composer\Repository\InstalledRepository')->disableOriginalConstructor()->getMock();
$package1 = $this->getMockBuilder('Composer\Package\PackageInterface')->getMock(); $package1 = $this->getMockBuilder('Composer\Package\PackageInterface')->getMock();
$package2 = $this->getMockBuilder('Composer\Package\PackageInterface')->getMock(); $package2 = $this->getMockBuilder('Composer\Package\PackageInterface')->getMock();
@ -260,7 +260,7 @@ class SuggestedPackagesReporterTest extends TestCase
*/ */
public function testOutputNotGettingInstalledPackagesWhenNoSuggestions() public function testOutputNotGettingInstalledPackagesWhenNoSuggestions()
{ {
$repository = $this->getMockBuilder('Composer\Repository\RepositoryInterface')->getMock(); $repository = $this->getMockBuilder('Composer\Repository\InstalledRepository')->disableOriginalConstructor()->getMock();
$repository->expects($this->exactly(0)) $repository->expects($this->exactly(0))
->method('getPackages'); ->method('getPackages');