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

testApiFlushRuntimes_FlushesRuntimes() public method

    public function testApiFlushRuntimes_FlushesRuntimes()
    {
        $manager = $this->createRuntimeManager(['flushThreads', 'flushProcesses']);
        $manager->expects($this->once())->method('flushThreads')->will($this->returnValue(new PromiseFulfilled()));
        $manager->expects($this->once())->method('flushProcesses')->will($this->returnValue(new PromiseFulfilled()));
        $callable = $this->createCallableMock();
        $callable->expects($this->once())->method('__invoke');
        $manager->flushRuntimes()->then($callable);
    }
RuntimeManagerTest