Gush\Tests\Command\Branch\BranchChangelogCommandTest::testSearchWithIssuePattern PHP Method

testSearchWithIssuePattern() public method

    public function testSearchWithIssuePattern()
    {
        $command = new BranchChangelogCommand();
        $tester = $this->getCommandTester($command);
        $tester->execute(['--search' => ['/#(?P<id>[0-9]+)/i', '/GITHUB-(?P<id>[0-9]+)/i']]);
        $display = $tester->getDisplay();
        $this->assertCommandOutputMatches(['#123: Write a behat test to launch strategy   https://github.com/gushphp/gush/issues/123', 'GITHUB-500: Write a behat test to launch strategy   https://github.com/gushphp/gush/issues/500'], $display);
    }