Skip to content

Commit

Permalink
Merge pull request #3 from rvvup/rename-module
Browse files Browse the repository at this point in the history
Rename module
  • Loading branch information
richard-rvvup authored Dec 18, 2023
2 parents becaa3f + 2ea8052 commit f50f932
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Model/Environment/GetEnvironmentVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ public function getRvvupModuleVersion(): string
$packages = $this->composerInformation->getInstalledMagentoPackages();

// Get the value from the composer.lock file if set.
if (isset($packages['rvvup/module-magento-payments']['version'])
&& is_string($packages['rvvup/module-magento-payments']['version'])
if (isset($packages['rvvup/module-magento-payments-hyva-checkout']['version'])
&& is_string($packages['rvvup/module-magento-payments-hyva-checkout']['version'])
) {
return (string) $packages['rvvup/module-magento-payments']['version'];
return (string) $packages['rvvup/module-magento-payments-hyva-checkout']['version'];
}

// Otherwise, check for `app/code` installation
Expand Down
4 changes: 2 additions & 2 deletions Test/Unit/Model/Environment/GetEnvironmentVersionsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected function tearDown(): void
public function testEverythingIsWorkingInstalledViaComposer(): void
{
$this->composerInfoMock->expects($this->once())->method('getInstalledMagentoPackages')->willReturn([
'rvvup/module-magento-payments' => [
'rvvup/module-magento-payments-hyva-checkout' => [
'version' => '0.1.0'
],
]);
Expand Down Expand Up @@ -224,7 +224,7 @@ public function testGeneratedEnvironmentVersionIsRetrievedFromCache(): void
->expects($this->once())
->method('getInstalledMagentoPackages')
->willReturn([
'rvvup/module-magento-payments' => [
'rvvup/module-magento-payments-hyva-checkout' => [
'version' => '0.1.0'
]
]);
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rvvup/module-magento-payments",
"name": "rvvup/module-magento-payments-hyva-checkout",
"description": "Rvvup payment gateway for Magento 2",
"type": "magento2-module",
"minimum-stability": "dev",
Expand Down

0 comments on commit f50f932

Please sign in to comment.