supporters/Supporters/t/Supporters.t

29 lines
520 B
Perl
Raw Normal View History

# Before 'make install' is performed this script should be runnable with
# 'make test'. After 'make install' it should work as 'perl Supporters.t'
#########################
use strict;
use warnings;
2015-12-07 02:28:49 +00:00
use Test::More tests => 3;
BEGIN { use_ok('Supporters') };
2015-12-07 02:28:49 +00:00
=pod
Initial tests to verify creation of objects
=cut
require 't/CreateTestDB.pl';
my $dbh = get_test_dbh();
my $supporters = new Supporters($dbh, "testcmd");
is($dbh, $supporters->dbh());
is("testcmd", $supporters->ledgerCmd());
2015-12-07 02:28:49 +00:00
$dbh->disconnect();