Lines 57-64
subtest 'cancel() tests' => sub {
Link Here
|
57 |
"//$userid:$password@/api/v1/article_requests/$deleted_article_request_id" |
57 |
"//$userid:$password@/api/v1/article_requests/$deleted_article_request_id" |
58 |
)->status_is(404)->json_is( { error => "Article request not found" } ); |
58 |
)->status_is(404)->json_is( { error => "Article request not found" } ); |
59 |
|
59 |
|
60 |
my $article_request = |
60 |
my $article_request = $builder->build_object( |
61 |
$builder->build_object( { class => 'Koha::ArticleRequests' } ); |
61 |
{ |
|
|
62 |
class => 'Koha::ArticleRequests', |
63 |
value => { debit_id => undef } |
64 |
} |
65 |
); |
62 |
|
66 |
|
63 |
my $reason = 'A reason'; |
67 |
my $reason = 'A reason'; |
64 |
my $notes = 'Some notes'; |
68 |
my $notes = 'Some notes'; |
Lines 131-137
subtest 'patron_cancel() tests' => sub {
Link Here
|
131 |
my $article_request = $builder->build_object( |
135 |
my $article_request = $builder->build_object( |
132 |
{ |
136 |
{ |
133 |
class => 'Koha::ArticleRequests', |
137 |
class => 'Koha::ArticleRequests', |
134 |
value => { borrowernumber => $patron->id } |
138 |
value => { borrowernumber => $patron->id, debit_id => undef } |
135 |
} |
139 |
} |
136 |
); |
140 |
); |
137 |
|
141 |
|
138 |
- |
|
|