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

(-)a/misc/devel/create_test_data.pl (-5 / +7 lines)
Lines 45-55 pod2usage(1) if $help || !$number || !$source; Link Here
45
45
46
for ( 1 .. $number ) {
46
for ( 1 .. $number ) {
47
47
48
    if ( $source eq 'Biblio' ) {
48
    if($source eq 'Biblio'){
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
    } else {
52
    }elsif($source eq 'Illrequest'){
53
        $builder->build_sample_ill_request( $values )
54
    }else{
53
        $builder->build(
55
        $builder->build(
54
            {
56
            {
55
                source => $source,
57
                source => $source,
(-)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