Skip to content

Commit

Permalink
fix phpcs and remove ignored mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mglaman committed Sep 5, 2024
1 parent 3fdc139 commit 17d5588
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Command/Push/PushArtifactCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,11 @@ private function determineDestinationGitUrls(): array
if ($envVar = getenv('ACLI_PUSH_ARTIFACT_DESTINATION_GIT_URLS')) {
return explode(',', $envVar);
}

if ($this->datastoreAcli->get('push.artifact.destination-git-urls')) {
return $this->datastoreAcli->get('push.artifact.destination-git-urls');
}

$applicationUuid = $this->determineCloudApplication();
return [$this->getAnyVcsUrl($applicationUuid)];
}
Expand Down
3 changes: 0 additions & 3 deletions tests/phpunit/src/Commands/Push/PushArtifactCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,6 @@ public function testPushTagArtifact(): void

public function testPushArtifactWithAcquiaCliFile(): void
{
$applications = $this->mockRequest('getApplications');
$this->mockRequest('getApplicationByUuid', $applications[0]->uuid);
$this->mockRequest('getApplicationEnvironments', $applications[0]->uuid);
$this->datastoreAcli->set('push.artifact.destination-git-urls', [
'https://github.com/example1/cli.git',
'https://github.com/example2/cli.git',
Expand Down

0 comments on commit 17d5588

Please sign in to comment.