在这个函数中,我使用包装器创建一个Mollie支付。需要对函数$molliePayment进行模拟,因为我不想在测试期间调用API。我怎样才能做到这一点?\Mollie\Laravel\Facades\Mollie::api()->payments->create([])test('Mollie creates new payment', function ($order, $mollie) {
/&
我试图在$this->mollie->payments->create方法中调用testFunction(),但是我得到了一个错误:
致命错误:执行API调用(请求)时出现消息'Mollie_API_Exception‘的异常’Mollie_API_Exception‘:数量低于最小值’‘。因此,这意味着我在$ this ->mollie->testFunction->create方法中调用()时出错了。用于创建支付的代码: