Kraken\_Unit\Runtime\Command\RuntimeStartTest::testApisolver_InvokesProperAction PHP Method

testApisolver_InvokesProperAction() public method

    public function testApisolver_InvokesProperAction()
    {
        $ex = new Exception();
        $origin = 'origin';
        $hash = 'hash';
        $result = new StdClass();
        $solver = $this->createSolver();
        $manager = $this->createManager();
        $manager->expects($this->once())->method('startRuntime')->with($origin, ['hash' => $hash])->will($this->returnValue($result));
        $this->assertSame($result, $this->callProtectedMethod($solver, 'solver', [$ex, ['origin' => $origin, 'hash' => $hash]]));
    }