From 970d38afd1ba22db0518d8e9ca44c260f5861e1f Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Tue, 13 Aug 2024 19:30:21 +1200 Subject: [PATCH] MNT Prevent extension from fetching from github --- tests/Tasks/UpdatePackageInfoTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/Tasks/UpdatePackageInfoTest.php b/tests/Tasks/UpdatePackageInfoTest.php index 2319784..7b5a704 100644 --- a/tests/Tasks/UpdatePackageInfoTest.php +++ b/tests/Tasks/UpdatePackageInfoTest.php @@ -50,7 +50,7 @@ public function testPackagesAreAddedCorrectly() $frameworkVersion = VersionProvider::singleton()->getModuleVersion('silverstripe/framework'); $composerLoader = $this->getMockBuilder(ComposerLoader::class) - ->setMethods(['getLock'])->getMock(); + ->setMethods(['getLock', 'getPackages'])->getMock(); $composerLoader->expects($this->any())->method('getLock')->will($this->returnValue(json_decode(<<expects($this->any())->method('getPackages')->will($this->returnValue([])); + $task->setComposerLoader($composerLoader); $task->run(null);