Lines 192-198
$t->request_ok($tx)
Link Here
|
192 |
->status_is(404); |
192 |
->status_is(404); |
193 |
|
193 |
|
194 |
my $accountline_to_partiallypay = Koha::Account::Lines->search({'borrowernumber' => $borrowernumber, 'amount' => 80})->unblessed()->[0]; |
194 |
my $accountline_to_partiallypay = Koha::Account::Lines->search({'borrowernumber' => $borrowernumber, 'amount' => 80})->unblessed()->[0]; |
195 |
|
|
|
196 |
$tx = $t->ua->build_tx(POST => "/api/v1/accountlines/$accountline_to_partiallypay->{accountlines_id}/payment" => json => {amount => 'foo'}); |
195 |
$tx = $t->ua->build_tx(POST => "/api/v1/accountlines/$accountline_to_partiallypay->{accountlines_id}/payment" => json => {amount => 'foo'}); |
197 |
$tx->req->cookies({name => 'CGISESSID', value => $session->id}); |
196 |
$tx->req->cookies({name => 'CGISESSID', value => $session->id}); |
198 |
$tx->req->env({REMOTE_ADDR => '127.0.0.1'}); |
197 |
$tx->req->env({REMOTE_ADDR => '127.0.0.1'}); |
199 |
- |
|
|