Lines 59-66
my $unauth_userid = $patron->userid;
Link Here
|
59 |
my $patron_id = $patron->borrowernumber; |
59 |
my $patron_id = $patron->borrowernumber; |
60 |
|
60 |
|
61 |
my $branchcode = $builder->build({ source => 'Branch' })->{ branchcode }; |
61 |
my $branchcode = $builder->build({ source => 'Branch' })->{ branchcode }; |
62 |
my $module = Test::MockModule->new('C4::Context'); |
|
|
63 |
$module->mock('userenv', sub { { branch => $branchcode } }); |
64 |
|
62 |
|
65 |
$t->get_ok( "//$userid:$password@/api/v1/checkouts?patron_id=$patron_id" ) |
63 |
$t->get_ok( "//$userid:$password@/api/v1/checkouts?patron_id=$patron_id" ) |
66 |
->status_is(200) |
64 |
->status_is(200) |
67 |
- |
|
|