View | Details | Raw Unified | Return to bug 37448
Collapse All | Expand All

(-)a/misc/devel/create_test_data.pl (+2 lines)
Lines 49-54 for ( 1 .. $number ) { Link Here
49
        $builder->build_sample_biblio( $values )
49
        $builder->build_sample_biblio( $values )
50
    }elsif($source eq 'Item'){
50
    }elsif($source eq 'Item'){
51
        $builder->build_sample_item( $values )
51
        $builder->build_sample_item( $values )
52
    }elsif($source eq 'Illrequest'){
53
        $builder->build_sample_ill_request( $values )
52
    }else{
54
    }else{
53
        $builder->build(
55
        $builder->build(
54
            {
56
            {
(-)a/t/lib/TestBuilder.pm (-1 / +15 lines)
Lines 210-215 sub build_sample_item { Link Here
210
    )->store->get_from_storage;
210
    )->store->get_from_storage;
211
}
211
}
212
212
213
sub build_sample_ill_request {
214
    my ( $self, $args ) = @_;
215
216
    $args->{biblio_id}  = $args->{biblio_id}  || $self->build_sample_biblio->biblionumber;
217
    $args->{backend}    = $args->{backend}    || 'FreeForm';
218
    $args->{branchcode} = $args->{branchcode} || $self->build_object( { class => 'Koha::Libraries' } )->branchcode;
219
220
    return $self->build(
221
        {
222
            source => 'Illrequest',
223
            value  => $args,
224
        }
225
    );
226
}
227
213
# ------------------------------------------------------------------------------
228
# ------------------------------------------------------------------------------
214
# Internal helper routines
229
# Internal helper routines
215
230
216
- 

Return to bug 37448