X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=t%2Fshop%2Fshop_order.t;h=e40ec2fcf4a6fbbf11cb8716c97d99b576c523ff;hb=e43a7a5333cb46e48992c96797323d613ee10433;hp=aef41501b30d217a4c876e22212e8b0056b55b74;hpb=51504ef44a8f49be8baa983e8a37c301acb9a937;p=kivitendo-erp.git diff --git a/t/shop/shop_order.t b/t/shop/shop_order.t index aef41501b..e40ec2fcf 100644 --- a/t/shop/shop_order.t +++ b/t/shop/shop_order.t @@ -5,6 +5,7 @@ use lib 't'; use Support::TestSetup; use Carp; use Test::Exception; +use SL::DBUtils qw(check_trgm); use SL::Dev::ALL; use SL::Dev::Part qw(new_part); use SL::Dev::Shop qw(new_shop new_shop_part new_shop_order); @@ -39,13 +40,13 @@ sub reset_state { )->save; } -sub save_shorcontroller_to_string { +sub save_shopcontroller_to_string { my $output; open(my $outputFH, '>', \$output) or die "OUTPUT"; my $oldFH = select $outputFH; - my $shor_controller = SL::Controller::ShopOrder->new; - $shor_controller->action_transfer; + my $shop_controller = SL::Controller::ShopOrder->new; + $shop_controller->action_transfer; select $oldFH; close $outputFH; @@ -57,7 +58,7 @@ sub test_transfer { $::form->{import_id} = $params{import_id}; $::form->{customer} = $params{customer}; my $test_name = 'Test Controller Action Transfer'; - save_shorcontroller_to_string(); + save_shopcontroller_to_string(); my @links_record = RecordLinks->get_links( 'from_table' => 'shop_orders', 'from_id' => $params{import_id}, 'to_table' => 'oe', @@ -71,7 +72,7 @@ Support::TestSetup::login(); reset_state(); -my $trgm = SL::DB::ShopOrder->check_trgm; +my $trgm = check_trgm($::form->get_standard_dbh()); my $shop_trans_id = 1;