Skip to content

Commit

Permalink
FRW-7429: Fixed composer command (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4onok authored Feb 22, 2024
1 parent c947446 commit 6e72d84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ public function updateLockHash(): PackageManagerResponseDto
$package = $this->getFirstAvailablePackage();

$command = [
...explode(' ', static::UPDATE_COMMAND_NAME),
static::COMPOSER_COMMAND_NAME,
static::UPDATE_COMMAND_NAME,
sprintf('%s:%s', $package['name'], $package['version']),
static::NO_PLUGINS_FLAG,
static::NO_SCRIPTS_FLAG,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ public function testUpdateLockHashShouldUpdatePackage(): void
$processRunnerServiceMock
->expects($this->once())
->method('run')
->with($this->containsEqual('phpunit/phpunit:9.5.23'))
->with(['composer', 'update', 'phpunit/phpunit:9.5.23', '--no-plugins', '--no-scripts', '--no-install', '--no-interaction'])
->willReturn($processMock);

$commandExecutor = new ComposerCommandExecutor(
Expand Down

0 comments on commit 6e72d84

Please sign in to comment.