X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2577cacd03a8c97ee2217a2ff3ef90958c94542e..0ab3571374dbc1121012f2f058c8cf13993eaa2f:/Test/perl/test_action.pl diff --git a/Test/perl/test_action.pl b/Test/perl/test_action.pl index 4e78f919f..0f2e02ab8 100755 --- a/Test/perl/test_action.pl +++ b/Test/perl/test_action.pl @@ -1,15 +1,26 @@ #!/usr/bin/perl use strict; -use SL::Controller::Mebil; +#use SL::Controller::Mebil; use SL::DB; +use SL::Form; use SL::LXDebug; $::lxdebug = new LXDebug; +#$::form = new Form; -my $db = new SL::DB; +#my $dbh = $::form->get_standard_dbh; -my $dbi = $db->dbi_connect("dbname=firma;host=localhost;port=5432", "kivitendo", "kivitendo"); +SL::DB->register_db( + driver => 'Pg', + database => 'firma', + host => 'localhost', + username => 'kivitendo', + password => 'kivitendo', +); + +my $db = SL::DB->new; +my $dbh = $db->dbh; my $m = new SL::Controller::Mebil; $m->action_calcmap;