Kraken\_Unit\Runtime\Command\Container\ContainerDestroyCommandTest::testApiCommand_RejectsPromise_WhenDestroyMethodRejects PHP Method

testApiCommand_RejectsPromise_WhenDestroyMethodRejects() public method

    public function testApiCommand_RejectsPromise_WhenDestroyMethodRejects()
    {
        $command = $this->createCommand();
        $runtime = $this->createRuntime(['destroy']);
        $runtime->expects($this->once())->method('destroy')->will($this->returnValue(new PromiseRejected()));
        $this->callProtectedMethod($command, 'command', [])->then($this->expectCallableNever(), $this->expectCallableOnce());
    }