Lines 19-25
Link Here
|
19 |
|
19 |
|
20 |
use Modern::Perl; |
20 |
use Modern::Perl; |
21 |
|
21 |
|
22 |
use Test::More tests => 5; |
22 |
use Test::More tests => 6; |
23 |
|
23 |
|
24 |
use C4::Circulation; |
24 |
use C4::Circulation; |
25 |
use Koha::Item; |
25 |
use Koha::Item; |
Lines 74-79
subtest 'get_transfer' => sub {
Link Here
|
74 |
is( $transfer->itemnumber, $new_item_1->itemnumber, 'Koha::Item->get_transfer should return a valid Koha::Item::Transfers object' ); |
74 |
is( $transfer->itemnumber, $new_item_1->itemnumber, 'Koha::Item->get_transfer should return a valid Koha::Item::Transfers object' ); |
75 |
}; |
75 |
}; |
76 |
|
76 |
|
|
|
77 |
subtest 'biblio' => sub { |
78 |
plan tests => 2; |
79 |
|
80 |
my $biblio = $retrieved_item_1->biblio; |
81 |
is( ref( $biblio ), 'Koha::Biblio', 'Koha::Item->bilio should return a Koha::Biblio' ); |
82 |
is( $biblio->biblionumber, $retrieved_item_1->biblionumber, 'Koha::Item->biblio should return the correct biblio' ); |
83 |
}; |
84 |
|
77 |
$retrieved_item_1->delete; |
85 |
$retrieved_item_1->delete; |
78 |
is( Koha::Items->search->count, $nb_of_items + 1, 'Delete should have deleted the item' ); |
86 |
is( Koha::Items->search->count, $nb_of_items + 1, 'Delete should have deleted the item' ); |
79 |
|
87 |
|
80 |
- |
|
|