Pantheon\Terminus\UnitTests\Commands\Site\DeleteCommandTest::testDeleteFailure PHP Method

testDeleteFailure() public method

Exercises the site:delete command when Site::delete fails to ensure message gets through
public testDeleteFailure ( )
    public function testDeleteFailure()
    {
        $site_name = 'my-site';
        $this->site->expects($this->once())->method('delete')->with()->will($this->throwException(new \Exception('Error message')));
        $this->logger->expects($this->never())->method('log');
        $out = $this->command->delete($site_name);
        $this->assertNull($out);
    }