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

testApiGetThreads_CallsModelMethod() public method

    public function testApiGetThreads_CallsModelMethod()
    {
        $manager = $this->createRuntimeManager();
        $promise = new Promise();
        $thread = $manager->getThread();
        $thread->expects($this->once())->method('getThreads')->will($this->returnValue($promise));
        $this->assertSame($promise, $manager->getThreads());
    }
RuntimeManagerTest