public function testCreateIssueInteractiveWithExternalEditor()
{
$command = new IssueCreateCommand();
$tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
$helperSet->set($this->getEditorHelper(true));
});
$this->setExpectedCommandInput($command, [self::ISSUE_TITLE, 'e']);
$tester->execute();
$display = $tester->getDisplay();
$this->assertCommandOutputMatches('Created issue https://github.com/gushphp/gush/issues/77', $display);
$issue = $command->getIssueTracker()->getIssue(TestAdapter::ISSUE_NUMBER_CREATED);
$this->assertEquals(self::ISSUE_TITLE, $issue['title']);
$this->assertEquals(self::ISSUE_DESCRIPTION, $issue['body']);
}