6 our @EXPORT_OK = qw(new_shop new_shop_part new_shop_order);
7 our %EXPORT_TAGS = (ALL => \@EXPORT_OK);
14 my $shop = SL::DB::Shop->new(
15 description => delete $params{description} || 'testshop',
24 my $part = delete $params{part};
25 my $shop = delete $params{shop};
27 my $shop_part = SL::DB::ShopPart->new(
38 my $shop_order = SL::DB::ShopOrder->new(
39 shop => $params{shop},
52 SL::Dev::Shop - create shop objects for testing, with minimal defaults
56 =head2 C<create_shop %PARAMS>
58 Creates a new shop object.
60 my $shop = SL::Dev::Shop::create_shop();
62 Add a part as a shop part to the shop:
64 my $part = SL::Dev::Part::create_part();
65 $shop->add_shop_parts( SL::DB::ShopPart->new(part => $part, shop_description => 'Simply the best part!' ) );
75 G. Richardson E<lt>grichardson@kivitendo-premium.deE<gt>