Kraken\_Unit\Runtime\Command\Thread\ThreadExistsCommandTest::testApiCommand_InvokesProperAction PHP Method

testApiCommand_InvokesProperAction() public method

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