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

(-)a/t/db_dependent/Koha/Authorities.t (-2 / +2 lines)
Lines 61-68 my $new_authority_type_1 = Koha::Authority::Type->new( Link Here
61
        summary            => 'my summary for authority 1',
61
        summary            => 'my summary for authority 1',
62
    }
62
    }
63
)->store;
63
)->store;
64
my $new_authority_1 = Koha::Authority->new( { authtypecode => $new_authority_type_1->authtypecode, } )->store;
64
my $new_authority_1 = Koha::Authority->new( { authtypecode => $new_authority_type_1->authtypecode, marcxml => '' } )->store;
65
my $new_authority_2 = Koha::Authority->new( { authtypecode => $new_authority_type_1->authtypecode, } )->store;
65
my $new_authority_2 = Koha::Authority->new( { authtypecode => $new_authority_type_1->authtypecode, marcxml => '' } )->store;
66
66
67
is( Koha::Authority::Types->search->count, $nb_of_authority_types + 1, 'The authority type should have been added' );
67
is( Koha::Authority::Types->search->count, $nb_of_authority_types + 1, 'The authority type should have been added' );
68
is( Koha::Authorities->search->count,      $nb_of_authorities + 2,     'The 2 authorities should have been added' );
68
is( Koha::Authorities->search->count,      $nb_of_authorities + 2,     'The 2 authorities should have been added' );
(-)a/t/lib/TestBuilder.pm (-1 / +3 lines)
Lines 484-489 sub _gen_default_values { Link Here
484
            tax_rate => 0,
484
            tax_rate => 0,
485
            discount => 0,
485
            discount => 0,
486
        },
486
        },
487
        AuthHeader => {
488
            marcxml => '',
489
        },
487
    };
490
    };
488
}
491
}
489
492
490
- 

Return to bug 20144