Pantheon\Terminus\UnitTests\Commands\Multidev\DeleteCommandTest::testMultidevDeleteWithBranch PHP Method

testMultidevDeleteWithBranch() public method

Tests to ensure the multidev:delete to ensure it passes the 'delete-branch' option successfully
    public function testMultidevDeleteWithBranch()
    {
        $this->environment->id = 'multipass';
        $this->environment->expects($this->once())->method('delete')->with($this->equalTo(['delete_branch' => true]));
        $this->workflow->expects($this->once())->method('wait');
        $this->workflow->method('isSuccessful')->willReturn(true);
        $this->logger->expects($this->once())->method('log')->with($this->equalTo('notice'), $this->equalTo("Deleted the multidev environment {env}."), $this->equalTo(['env' => $this->environment->id]));
        $out = $this->command->deleteMultidev("site.{$this->environment->id}", ['delete-branch' => true]);
        $this->assertNull($out);
    }