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' ); |