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);
}