Merge pull request #42 from solgenomics/topic/duplicate_image_warning
[cxgn-corelibs.git] / t / CXGN / UserList / userlist.t
blob89f0f7a5b69d5dcc53302c8b7c0640fdb1774240
1 #!/usr/bin/perl
3 use Modern::Perl;
4 use Test::Most;
5 use CXGN::DB::Connection;
6 use CXGN::UserList::Handle;
8 my $dbh;
9 BEGIN {
10 eval {
11 $dbh = CXGN::DB::Connection->new;
13 if ($@ =~ m/DBI connect/){
14 plan skip_all => "Could not connect to database";
16 die $@ if $@;
17 plan tests => 3;
19 my $handle = CXGN::UserList::Handle->new($dbh, 768);
20 ok(defined $handle, '$handle is defined');
21 my $hotlist = $handle->get_hotlist();
22 ok(defined $hotlist, "get_hotlist()");
23 ok(defined $hotlist->get_list_size, "hotlist size");