Fix for tests

This commit is contained in:
Hillel Coren 2017-02-09 14:34:26 +02:00
parent d091ea0e0f
commit b432cb55ba
3 changed files with 3 additions and 3 deletions

View File

@ -164,7 +164,7 @@ class PaymentService extends BaseService
foreach ($payments as $payment) { foreach ($payments as $payment) {
if (Auth::user()->can('edit', $payment)) { if (Auth::user()->can('edit', $payment)) {
$amount = ! empty($params['amount']) ? floatval($params['amount']) : null; $amount = ! empty($params['refund_amount']) ? floatval($params['refund_amount']) : null;
if ($accountGateway = $payment->account_gateway) { if ($accountGateway = $payment->account_gateway) {
$paymentDriver = $accountGateway->paymentDriver(); $paymentDriver = $accountGateway->paymentDriver();
if ($paymentDriver->refundPayment($payment, $amount)) { if ($paymentDriver->refundPayment($payment, $amount)) {

View File

@ -13,7 +13,7 @@
<div class="col-sm-4"> <div class="col-sm-4">
<div class="input-group"> <div class="input-group">
<span class="input-group-addon" id="refundCurrencySymbol"></span> <span class="input-group-addon" id="refundCurrencySymbol"></span>
<input type="number" class="form-control" id="refundAmount" name="amount" step="0.01" min="0.01" placeholder="{{ trans('texts.amount') }}"> <input type="number" class="form-control" id="refundAmount" name="refund_amount" step="0.01" min="0.01" placeholder="{{ trans('texts.amount') }}">
</div> </div>
<div class="help-block">{{ trans('texts.refund_max') }} <span id="refundMax"></span></div> <div class="help-block">{{ trans('texts.refund_max') }} <span id="refundMax"></span></div>
</div> </div>

View File

@ -8,7 +8,7 @@ class_name: AcceptanceTester
modules: modules:
enabled: enabled:
- WebDriver: - WebDriver:
url: 'http://ninja.dev:8000/' url: 'http://ninja.dev/'
window_size: 1024x768 window_size: 1024x768
wait: 5 wait: 5
browser: firefox browser: firefox