Kraken\_Unit\Promise\_Partial\PromiseCancelledPartial::testApiAbort_CallsThenWithValidArguments_ForCancelledPromise PHP Method

testApiAbort_CallsThenWithValidArguments_ForCancelledPromise() public method

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