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

testDeletesSpecificRemoteBranchWhenNonInteractive() public method

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