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

testApiCommand_CancelsPromise_WhenDestroyMethodCancels() public method

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