Kraken\_Unit\Runtime\Command\Threads\ThreadsStartCommandTest::testApiCommand_InvokesProperAction PHP Method

testApiCommand_InvokesProperAction() public method

    public function testApiCommand_InvokesProperAction()
    {
        $aliases = ['alias1', 'alias2'];
        $result = new StdClass();
        $command = $this->createCommand();
        $manager = $this->createManager();
        $manager->expects($this->once())->method('startThreads')->with($aliases)->will($this->returnValue($result));
        $this->assertSame($result, $this->callProtectedMethod($command, 'command', [['aliases' => $aliases]]));
    }