reference_id in locusgroup_member is a dbxref
[phenome.git] / t / generic_gene_page.t
blobdbe21c088f92c1f32a72f9d50a43508c193bb7b4
1 #!/usr/bin/perl
2 use strict;
3 use warnings;
5 use lib '../sgn/t/lib';
6 use SGN::Test::WWW::Mechanize;
7 use Test::More tests => 4;
8 use Test::Exception;
10 use CXGN::Phenome::GenericGenePage;
12 $SIG{__DIE__} = \&Carp::confess;
14 throws_ok {
15 CXGN::Phenome::GenericGenePage->new( -id => 428 )
16 } qr/-dbh/, 'dies without dbh param';
18 my $m = SGN::Test::WWW::Mechanize->new();
20 my $dbh = $m->context->dbc->dbh;
22 my $ggp = CXGN::Phenome::GenericGenePage
23 ->new( -id => 428,
24 -dbh => $dbh,
27 test_xml( $ggp->render_xml );
29 sub test_xml {
30 my $x = shift;
31 like( $x, qr/dwarf/, 'result looks OK');
32 like( $x, qr/<gene/, 'result looks OK');
33 like( $x, qr/<data_provider>/, 'result looks OK');
36 #$dbh->disconnect(42);