Kraken\_Unit\Runtime\Command\RuntimeRecreateTest::testApisolver_ThrowsException_WhenRuntimeDoesNotExist PHP Метод

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

    public function testApisolver_ThrowsException_WhenRuntimeDoesNotExist()
    {
        $ex = new Exception();
        $origin = 'origin';
        $hash = 'hash';
        $solver = $this->createSolver();
        $manager = $this->createManager();
        $manager->expects($this->once())->method('existsThread')->with($origin)->will($this->returnValue(false));
        $manager->expects($this->once())->method('existsProcess')->with($origin)->will($this->returnValue(false));
        $callable = $this->createCallableMock();
        $callable->expects($this->once())->method('__invoke')->with($this->isInstanceOf(RejectionException::class));
        $this->callProtectedMethod($solver, 'solver', [$ex, ['origin' => $origin]])->then(null, $callable);
    }