Skip to content

Commit

Permalink
kill mutants
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Oct 23, 2023
1 parent f5adacf commit 2b83df7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Command/Push/PushArtifactCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->setDirAndRequireProjectCwd($input);
if ($input->getOption('no-clone')) {
$input->setOption('no-commit', TRUE);
$input->setOption('no-push', TRUE);
}
if ($input->getOption('no-commit')) {
$input->setOption('no-push', TRUE);
Expand Down
15 changes: 15 additions & 0 deletions tests/phpunit/src/Commands/Push/PushArtifactCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,20 @@ public function testPushArtifact(): void {
$this->assertStringContainsString('[0] Sample application 1', $output);
$this->assertStringContainsString('Choose a Cloud Platform environment', $output);
$this->assertStringContainsString('[0] Dev, dev (vcs: master)', $output);
$this->assertStringContainsString('Acquia CLI will:', $output);
$this->assertStringContainsString('- git clone master from [email protected]:site.git', $output);
$this->assertStringContainsString('- Compile the contents of vfs://root/project into an artifact', $output);
$this->assertStringContainsString('- Copy the artifact files into the checked out copy of master', $output);
$this->assertStringContainsString('- Commit changes and push the master branch', $output);
$this->assertStringContainsString('Removing', $output);
$this->assertStringContainsString('Initializing Git', $output);
$this->assertStringContainsString('Global .gitignore file', $output);
$this->assertStringContainsString('Removing vendor', $output);
$this->assertStringContainsString('Mirroring source', $output);
$this->assertStringContainsString('Installing Composer', $output);
$this->assertStringContainsString('Finding Drupal', $output);
$this->assertStringContainsString('Removing sensitive', $output);
$this->assertStringContainsString('Adding and committing', $output);
$this->assertStringContainsString('Pushing changes to Acquia Git ([email protected]:site.git)', $output);
}

Expand Down Expand Up @@ -81,6 +95,7 @@ public function testPushTagArtifact(): void {
$this->assertStringContainsString('Select a Cloud Platform application:', $output);
$this->assertStringContainsString('[0] Sample application 1', $output);
$this->assertStringContainsString('Pushing changes to Acquia Git ([email protected]:site.git)', $output);
$this->assertStringContainsString('Commit changes and push the 1.2.0-build tag', $output);
}

public function testPushArtifactWithAcquiaCliFile(): void {
Expand Down

0 comments on commit 2b83df7

Please sign in to comment.