Lines 102-108
my $b = Koha::Acquisition::Bookseller->fetch({id => $id_supplier1});
Link Here
|
102 |
is( $b, |
102 |
is( $b, |
103 |
undef, "Supplier1 has been deleted - id_supplier1 $id_supplier1 doesnt exist anymore" ); |
103 |
undef, "Supplier1 has been deleted - id_supplier1 $id_supplier1 doesnt exist anymore" ); |
104 |
|
104 |
|
105 |
#Test GetBookSeller |
105 |
#Test get bookseller |
106 |
my @bookseller2 = Koha::Acquisition::Bookseller->search({name => $sample_supplier2->{name} }); |
106 |
my @bookseller2 = Koha::Acquisition::Bookseller->search({name => $sample_supplier2->{name} }); |
107 |
is( scalar(@bookseller2), 1, "Get only Supplier2" ); |
107 |
is( scalar(@bookseller2), 1, "Get only Supplier2" ); |
108 |
$bookseller2[0] = field_filter( $bookseller2[0] ); |
108 |
$bookseller2[0] = field_filter( $bookseller2[0] ); |
Lines 140-146
is( $bookseller1fromid, undef,
Link Here
|
140 |
$bookseller1fromid = Koha::Acquisition::Bookseller->fetch({ id => $id_supplier1}); |
140 |
$bookseller1fromid = Koha::Acquisition::Bookseller->fetch({ id => $id_supplier1}); |
141 |
$bookseller1fromid = field_filter($bookseller1fromid); |
141 |
$bookseller1fromid = field_filter($bookseller1fromid); |
142 |
is_deeply( $bookseller1fromid, $sample_supplier1, |
142 |
is_deeply( $bookseller1fromid, $sample_supplier1, |
143 |
"Get Supplier1 (GetBookSellerFromId)" ); |
143 |
"Get Supplier1 (fetch a bookseller by id)" ); |
144 |
|
144 |
|
145 |
#Test basket_count |
145 |
#Test basket_count |
146 |
$bookseller1fromid = Koha::Acquisition::Bookseller->fetch({ id => $id_supplier1}); |
146 |
$bookseller1fromid = Koha::Acquisition::Bookseller->fetch({ id => $id_supplier1}); |
147 |
- |
|
|