public function testMergePullRequestWithOptionPatNone()
{
$prAuthor = 'weaverryan';
$command = new PullRequestMergeCommand();
$tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
$helperSet->set($this->getLocalGitHelper(sprintf($this->mergeMessage, 'merge', 10))->reveal());
});
$tester->execute(['pr_number' => 10, '--pat' => 'none'], ['interactive' => false]);
$this->assertNotContains('Pat given to @', $tester->getDisplay());
$prComments = $command->getAdapter()->getComments(2);
$this->assertTrue(!isset($prComments['body']) || false === strpos($prComments['body'], '@' . $prAuthor));
}