Skip to content

Commit

Permalink
Update PullRequestMergeCommandTest in order to set explicitly `"pat…
Browse files Browse the repository at this point in the history
…" => "none" for non interactive command executions
  • Loading branch information
phansys committed May 18, 2018
1 parent 0525ccf commit 7a01da1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/Command/PullRequest/PullRequestMergeCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Gush\Command\PullRequest\PullRequestMergeCommand;
use Gush\Exception\UserException;
use Gush\Operation\RemoteMergeOperation;
use Gush\Template\Pats\Pats;
use Gush\Tests\Command\CommandTestCase;
use Prophecy\Argument;
use Symfony\Component\Console\Helper\HelperSet;
Expand Down Expand Up @@ -153,7 +154,7 @@ function (HelperSet $helperSet) {
);

$tester->execute(
['pr_number' => 10],
['pr_number' => 10, '--pat' => 'none'],
['interactive' => false]
);

Expand Down Expand Up @@ -184,7 +185,7 @@ function (HelperSet $helperSet) {
);

$tester->execute(
['pr_number' => 10, '--no-comments' => true],
['pr_number' => 10, '--no-comments' => true, '--pat' => 'none'],
['interactive' => false]
);

Expand Down Expand Up @@ -251,7 +252,7 @@ function (HelperSet $helperSet) {
);

$tester->execute(
['pr_number' => 10, '--squash' => true, 'pr_type' => 'merge'],
['pr_number' => 10, '--squash' => true, 'pr_type' => 'merge', '--pat' => 'none'],
['interactive' => false]
);

Expand All @@ -275,7 +276,7 @@ function (HelperSet $helperSet) {
);

$tester->execute(
['pr_number' => 10, '--force-squash' => true, 'pr_type' => 'merge'],
['pr_number' => 10, '--force-squash' => true, 'pr_type' => 'merge', '--pat' => 'none'],
['interactive' => false]
);

Expand Down Expand Up @@ -304,7 +305,7 @@ function (HelperSet $helperSet) {
);

$tester->execute(
['pr_number' => 10, '--switch' => 'develop', 'pr_type' => 'merge'],
['pr_number' => 10, '--switch' => 'develop', 'pr_type' => 'merge', '--pat' => 'none'],
['interactive' => false]
);

Expand Down Expand Up @@ -343,7 +344,7 @@ function (HelperSet $helperSet) {
);

$tester->execute(
['pr_number' => 10, '--fast-forward' => true, 'pr_type' => 'merge'],
['pr_number' => 10, '--fast-forward' => true, 'pr_type' => 'merge', '--pat' => 'none'],
['interactive' => false]
);

Expand Down

0 comments on commit 7a01da1

Please sign in to comment.