tests: Warnungen
authorSven Schöling <s.schoeling@linet-services.de>
Wed, 23 Nov 2016 09:16:51 +0000 (10:16 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Wed, 23 Nov 2016 09:16:51 +0000 (10:16 +0100)
t/part/assortment.t

index e67afe8..82d5897 100644 (file)
@@ -19,7 +19,7 @@ my $assortment = SL::Dev::Part::create_assortment( partnumber         => 'aso1',
 
 is( SL::DB::Manager::Part->get_all_count(), 11,  "total number of parts created is 11");
 
-my $assortment = SL::DB::Manager::Part->find_by( partnumber => 'aso1' ) or die "Can't find assortment with partnumber aso1";
+$assortment = SL::DB::Manager::Part->find_by( partnumber => 'aso1' ) or die "Can't find assortment with partnumber aso1";
 
 is($assortment->part_type,                  'assortment', 'assortment has correct part_type');
 is(scalar @{$assortment->assortment_items},  10,          'assortment has 10 parts');