Gush\Tests\Command\Issue\IssueCreateCommandTest::testCreateIssueNonInteractive PHP Method

testCreateIssueNonInteractive() public method

    public function testCreateIssueNonInteractive()
    {
        $command = new IssueCreateCommand();
        $tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
            $helperSet->set($this->getEditorHelper());
        });
        $tester->execute(['--title' => self::ISSUE_TITLE, '--body' => self::ISSUE_DESCRIPTION], ['interactive' => false]);
        $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']);
    }