From 7a01da1f1006531766093265349b2c31b034d399 Mon Sep 17 00:00:00 2001 From: Javier Spagnoletti Date: Fri, 18 May 2018 00:21:08 -0300 Subject: [PATCH] Update `PullRequestMergeCommandTest` in order to set explicitly `"pat" => "none" for non interactive command executions --- .../PullRequest/PullRequestMergeCommandTest.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/Command/PullRequest/PullRequestMergeCommandTest.php b/tests/Command/PullRequest/PullRequestMergeCommandTest.php index aef6b1a2..663cee7e 100644 --- a/tests/Command/PullRequest/PullRequestMergeCommandTest.php +++ b/tests/Command/PullRequest/PullRequestMergeCommandTest.php @@ -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; @@ -153,7 +154,7 @@ function (HelperSet $helperSet) { ); $tester->execute( - ['pr_number' => 10], + ['pr_number' => 10, '--pat' => 'none'], ['interactive' => false] ); @@ -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] ); @@ -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] ); @@ -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] ); @@ -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] ); @@ -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] );