Skip to content

Commit

Permalink
Merge pull request #1230 from prsnbrg/patch-1
Browse files Browse the repository at this point in the history
Update suggested use for major update
  • Loading branch information
phil-davis authored May 16, 2023
2 parents 0784dfc + edc07f2 commit fcfaa3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Command/InstallApp.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected function execute(InputInterface $input, OutputInterface $output) {
} else {
$updateMessage = $updateVersions['major'] === false
? 'App already installed and no update available'
: "Major update is available, use market:upgrade $appId --major.";
: "Major update is available, use market:upgrade --major $appId.";
$output->writeln("$appId: $updateMessage");
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/Command/InstallAppTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,6 @@ public function testInstallRefusesMajorUpgrade() {
['ids' => ['bla']]
);
$output = $this->commandTester->getDisplay();
$this->assertStringContainsString('Major update is available, use market:upgrade bla --major', $output);
$this->assertStringContainsString('Major update is available, use market:upgrade --major bla', $output);
}
}

0 comments on commit fcfaa3d

Please sign in to comment.