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