Kraken\_Unit\Runtime\RuntimeManagerTest::testApiDestroyRuntime_RejectsPromise_WhenRuntimeDoesNotExist PHP Method

testApiDestroyRuntime_RejectsPromise_WhenRuntimeDoesNotExist() public method

    public function testApiDestroyRuntime_RejectsPromise_WhenRuntimeDoesNotExist()
    {
        $manager = $this->createRuntimeManager();
        $alias = 'alias';
        $flags = 'flags';
        $params = ['param' => 'value'];
        $thread = $manager->getThread();
        $thread->expects($this->once())->method('existsThread')->will($this->returnValue(false));
        $process = $manager->getProcess();
        $process->expects($this->once())->method('existsProcess')->will($this->returnValue(false));
        $callable = $this->createCallableMock();
        $callable->expects($this->once())->method('__invoke')->with($this->isInstanceOf(ResourceUndefinedException::class));
        $manager->destroyRuntime($alias, $flags, $params)->then(null, $callable);
    }
RuntimeManagerTest