Skip to content

Commit 24bb79b

Browse files
committed
Resolves acquia#11: Changing Git unit tests to use --dry-run flag for commit tests.
1 parent 28d4db0 commit 24bb79b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

template/tests/phpunit/GitTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function testGitPreCommitHook() {
6666
// Commits must be executed inside of new project directory.
6767
chdir($this->projectDirectory);
6868
$prefix = $this->config['project']['prefix'];
69-
$command = "git commit --amend -m '$prefix-123: This is a good commit.' 2>&1";
69+
$command = "git commit --dry-run --amend -m '$prefix-123: This is a good commit.' 2>&1";
7070
$output = shell_exec($command);
7171
$this->assertNotContains('PHP Code Sniffer was not found', $output);
7272
$this->assertContains('Sniffing staged files via PHP Code Sniffer.', $output);

0 commit comments

Comments
 (0)