4 BEGIN { $ENV{SGN_SKIP_CGI} = 1 }
10 use SGN::Test::WWW::Mechanize;
12 my $mech = SGN::Test::WWW::Mechanize->new;
13 $SIG{__DIE__} = \&Carp::confess;
16 $mech->with_test_level( process => sub {
17 my $c = $mech->context;
19 can_ok( $c, 'feature' );
21 my $fp = $c->feature('featurepages')
22 or plan skip_all => 'featurepages feature not available';
24 can_ok( $fp, 'feature_name' );
26 my @xrefs = $fp->xrefs('Solyc05g005070'), $fp->xrefs('Serine/threonine protein kinase');
28 my @methods = qw/ is_empty text url feature /;
30 can_ok( $_, @methods ) for @xrefs;