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

testDeletesRemoteBranchAfterConfirmationWhenInteractive() public method

    public function testDeletesRemoteBranchAfterConfirmationWhenInteractive()
    {
        $command = new BranchDeleteCommand();
        $tester = $this->getCommandTester($command, null, null, function (HelperSet $helperSet) {
            $helperSet->set($this->getLocalGitHelper('test_branch', 'foo')->reveal());
        });
        $this->setExpectedCommandInput($command, "yes\n");
        $tester->execute(['organization' => 'cordoval', 'branch_name' => 'foo']);
        $display = $tester->getDisplay();
        $this->assertCommandOutputMatches('Branch cordoval/foo has been deleted!', $display);
    }