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, 2024
1 parent c9b9af6 commit 1c4def1
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tests/phpunit/src/Commands/Push/PushArtifactCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,19 @@ protected function createCommand(): CommandBase
return $this->injectCommand(PushArtifactCommand::class);
}

public function testNoAuthenticationRequired(): void
public function testPushArtifactHelp(): void
{
$help = $this->command->getHelp();
$expectedHelp = <<<EOF
This command builds a sanitized deploy artifact by running <options=bold>composer install</>, removing sensitive files, and committing vendor directories.
Vendor directories and scaffold files are committed to the build artifact even if they are ignored in the source repository.
To run additional build or sanitization steps (e.g. <options=bold>npm install</>), add a <options=bold>post-install-cmd</> script to your <options=bold>composer.json</> file: https://getcomposer.org/doc/articles/scripts.md#command-events
This command is designed for a specific scenario in which there are two branches or repositories involved: a source branch without vendor files committed, and an artifact branch with them. If both your source and destination branches are the same, you should simply use git push instead.
EOF;
$this->assertEquals($expectedHelp, $help);
$this->assertStringNotContainsString('This command requires authentication', $help);
}

Expand Down

0 comments on commit 1c4def1

Please sign in to comment.