Kraken\_Unit\Runtime\Command\RuntimeDestroyHardTest::testApisolver_InvokesProperAction PHP Метод

testApisolver_InvokesProperAction() публичный Метод

    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('destroyRuntime')->with($origin, Runtime::DESTROY_FORCE_HARD, ['hash' => $hash])->will($this->returnValue($result));
        $this->assertSame($result, $this->callProtectedMethod($solver, 'solver', [$ex, ['origin' => $origin, 'hash' => $hash]]));
    }