From 8a1e9744a0366512824f44d2e3a2f70a20c94f03 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 23 Apr 2020 10:29:22 +0200 Subject: [PATCH] Fix tests --- .../Composer/Test/Installer/SuggestedPackagesReporterTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php b/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php index 286b386d9..fb8003306 100644 --- a/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php +++ b/tests/Composer/Test/Installer/SuggestedPackagesReporterTest.php @@ -222,7 +222,7 @@ class SuggestedPackagesReporterTest extends TestCase */ 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(); $package2 = $this->getMockBuilder('Composer\Package\PackageInterface')->getMock(); @@ -260,7 +260,7 @@ class SuggestedPackagesReporterTest extends TestCase */ public function testOutputNotGettingInstalledPackagesWhenNoSuggestions() { - $repository = $this->getMockBuilder('Composer\Repository\RepositoryInterface')->getMock(); + $repository = $this->getMockBuilder('Composer\Repository\InstalledRepository')->disableOriginalConstructor()->getMock(); $repository->expects($this->exactly(0)) ->method('getPackages');