Kraken\_Unit\Promise\_Partial\PromiseFulfilledPartial::testApiSuccess_CallsThenWithValidArguments_ForFulfilledPromise PHP Method

testApiSuccess_CallsThenWithValidArguments_ForFulfilledPromise() public method

    public function testApiSuccess_CallsThenWithValidArguments_ForFulfilledPromise()
    {
        $test = $this->getTest();
        $callable = function () {
        };
        $promise = $this->createPromiseMock(['then']);
        $promise->expects($test->once())->method('then')->with($callable, null, null);
        $promise->success($callable);
    }
PromiseFulfilledPartial