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());
}