Bug 39875: (QA follow-up): Correct historycheck ui_context
This ui_context is supposed to be opac, not staff. For the purposes of these tests, this is not important, as the ui_context is only needed for the template params and this is testing if the history check stage is supposed to show or not. Reckon this was a copy paste without consequences hence missed, but the code is now semantically more correct. prove t/db_dependent/Koha/ILL/Request/Workflow/HistoryCheck.t Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
6a0fcefa22
commit
dfd028871a
|
|
@ -112,7 +112,7 @@ subtest 'show_history_check' => sub {
|
|||
my $ill_request_with_no_borrowernumber = $builder->build_sample_ill_request( { borrowernumber => undef } );
|
||||
|
||||
my $new_opac_history_check =
|
||||
Koha::ILL::Request::Workflow::HistoryCheck->new( $metadata_with_no_cardnumber, 'staff' );
|
||||
Koha::ILL::Request::Workflow::HistoryCheck->new( $metadata_with_no_cardnumber, 'opac' );
|
||||
|
||||
is(
|
||||
$new_opac_history_check->show_history_check($ill_request_with_no_borrowernumber),
|
||||
|
|
|
|||
Loading…
Reference in New Issue