public testApiStopThreads_CallsModelMethod ( ) |
public function testApiStopThreads_CallsModelMethod()
{
$manager = $this->createRuntimeManager();
$aliases = ['alias1', 'alias2'];
$params = ['param' => 'value'];
$promise = new Promise();
$thread = $manager->getThread();
$thread->expects($this->once())->method('stopThreads')->with($aliases, $params)->will($this->returnValue($promise));
$this->assertSame($promise, $manager->stopThreads($aliases, $params));
}