Merge pull request #5177 from solgenomics/topic/solgs/refactor-solgs-pipeline
[sgn.git] / t / unit_fixture / CXGN / Trait.t
blob1cf21c674328f9eab08995d14a01262f599ba838
2 use strict;
4 use lib 't/lib';
5 use SGN::Test::Fixture;
6 use Test::More;
8 use CXGN::Trait;
10 my $f = SGN::Test::Fixture->new();
12 my $trait = CXGN::Trait->new( { bcs_schema => $f->bcs_schema(), cvterm_id => 70666 });
14 is($trait->name(), "fresh root weight", "check trait name");
16 is($trait->format(), "numeric", "check trait format");
18 is($trait->db(), "CO_334", "check db property");
20 is($trait->accession(), "0000012", "check accession property");
22 is($trait->term(), "CO_334:0000012", "check term property");
24 #is($trait->display_name(), "CO_334:fresh root weight", "check display name property");
25 is($trait->display_name(), "fresh root weight|CO_334:0000012", "check display name property");
27 done_testing();