Skip to content

Commit

Permalink
DEP Use stable version of silverstripe/supported-modules
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 20, 2024
1 parent 40dd03d commit ccead6d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"php": "^8.1",
"silverstripe/framework": "^5.4",
"silverstripe/reports": "^5",
"silverstripe/supported-modules": "dev-main",
"silverstripe/supported-modules": "^1",
"symbiote/silverstripe-queuedjobs": "^5",
"guzzlehttp/guzzle": "^7.5"
},
Expand Down
8 changes: 7 additions & 1 deletion tests/Tasks/UpdatePackageInfoTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ public function testPackagesAreAddedCorrectly()
{
$task = UpdatePackageInfoTask::create();

$frameworkVersion = VersionProvider::singleton()->getModuleVersion('silverstripe/framework');
/** @var VersionProvider $versionProvider */
$versionProvider = $this->getMockBuilder(VersionProvider::class)
->setMethods(['getModuleVersion'])
->getMock();
$versionProvider->expects($this->any())->method('getModuleVersion')->will($this->returnValue('5.9.9'));
$frameworkVersion = $versionProvider->getModuleVersion('silverstripe/framework');

$composerLoader = $this->getMockBuilder(ComposerLoader::class)
->setMethods(['getLock'])->getMock();
$composerLoader->expects($this->any())->method('getLock')->will($this->returnValue(json_decode(<<<LOCK
Expand Down

0 comments on commit ccead6d

Please sign in to comment.