Lines 102-108
my $type = Koha::ItemTypes->find('type1');
Link Here
|
102 |
ok( defined($type), 'first result' ); |
102 |
ok( defined($type), 'first result' ); |
103 |
is( $type->itemtype, 'type1', 'itemtype/code' ); |
103 |
is( $type->itemtype, 'type1', 'itemtype/code' ); |
104 |
is( $type->description, 'description', 'description' ); |
104 |
is( $type->description, 'description', 'description' ); |
105 |
is( $type->rentalcharge, '0.0000', 'rentalcharge' ); |
105 |
is( $type->rentalcharge, '0.000000', 'rentalcharge' ); |
106 |
is( $type->imageurl, 'imageurl', 'imageurl' ); |
106 |
is( $type->imageurl, 'imageurl', 'imageurl' ); |
107 |
is( $type->summary, 'summary', 'summary' ); |
107 |
is( $type->summary, 'summary', 'summary' ); |
108 |
is( $type->checkinmsg, 'checkinmsg', 'checkinmsg' ); |
108 |
is( $type->checkinmsg, 'checkinmsg', 'checkinmsg' ); |
Lines 112-118
$type = Koha::ItemTypes->find('type2');
Link Here
|
112 |
ok( defined($type), 'second result' ); |
112 |
ok( defined($type), 'second result' ); |
113 |
is( $type->itemtype, 'type2', 'itemtype/code' ); |
113 |
is( $type->itemtype, 'type2', 'itemtype/code' ); |
114 |
is( $type->description, 'description', 'description' ); |
114 |
is( $type->description, 'description', 'description' ); |
115 |
is( $type->rentalcharge, '0.0000', 'rentalcharge' ); |
115 |
is( $type->rentalcharge, '0.000000', 'rentalcharge' ); |
116 |
is( $type->imageurl, 'imageurl', 'imageurl' ); |
116 |
is( $type->imageurl, 'imageurl', 'imageurl' ); |
117 |
is( $type->summary, 'summary', 'summary' ); |
117 |
is( $type->summary, 'summary', 'summary' ); |
118 |
is( $type->checkinmsg, 'checkinmsg', 'checkinmsg' ); |
118 |
is( $type->checkinmsg, 'checkinmsg', 'checkinmsg' ); |
119 |
- |
|
|