Revision f092c54a
Von Sven Schöling vor etwa 8 Jahren hinzugefügt
t/part/assortment.t | ||
---|---|---|
19 | 19 |
|
20 | 20 |
is( SL::DB::Manager::Part->get_all_count(), 11, "total number of parts created is 11"); |
21 | 21 |
|
22 |
my $assortment = SL::DB::Manager::Part->find_by( partnumber => 'aso1' ) or die "Can't find assortment with partnumber aso1";
|
|
22 |
$assortment = SL::DB::Manager::Part->find_by( partnumber => 'aso1' ) or die "Can't find assortment with partnumber aso1"; |
|
23 | 23 |
|
24 | 24 |
is($assortment->part_type, 'assortment', 'assortment has correct part_type'); |
25 | 25 |
is(scalar @{$assortment->assortment_items}, 10, 'assortment has 10 parts'); |
Auch abrufbar als: Unified diff
tests: Warnungen