Pantheon\Terminus\UnitTests\Commands\Multidev\DeleteCommandTest::testMultidevDeleteFailure PHP Метод

testMultidevDeleteFailure() публичный Метод

Tests to ensure the multidev:create throws an error when the environment-creation operation fails
    public function testMultidevDeleteFailure()
    {
        $this->environment->expects($this->once())->method('delete')->with();
        $this->workflow->expects($this->once())->method('wait');
        $this->workflow->method('isSuccessful')->willReturn(false);
        $this->workflow->method('getMessage')->willReturn("The {env} environment could not be deleted.");
        $out = $this->command->deleteMultidev('site.multipass');
        $this->assertNull($out);
    }