Gush\Tests\Command\Branch\BranchDeleteCommandTest::testDeletesCurrentRemoteBranchWhenNonInteractive PHP Method

testDeletesCurrentRemoteBranchWhenNonInteractive() public method

    public function testDeletesCurrentRemoteBranchWhenNonInteractive()
    {
        $command = new BranchDeleteCommand();
        $tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
            $helperSet->set($this->getLocalGitHelper('test_branch')->reveal());
        });
        $tester->execute(['--org' => 'my-org'], ['interactive' => false]);
        $display = $tester->getDisplay();
        $this->assertCommandOutputMatches('Branch cordoval/test_branch has been deleted!', $display);
    }