start fixing test for multi cat phenotype upload.
[sgn.git] / t / unit_fixture / CXGN / Trial / TrialLayout.t
blobb371d20b14fc0d6d1ec8cb4b8ab63a2895dd3940
2 use strict;
4 use lib 't/lib';
6 use Test::More;
7 use Data::Dumper;
8 use SGN::Test::Fixture;
9 use CXGN::Trial::TrialLayout;
11 my $f = SGN::Test::Fixture->new();
13 my $trial_id = 139;
15 my $tl = CXGN::Trial::TrialLayout->new({ schema => $f->bcs_schema(), trial_id => $trial_id, experiment_type => 'field_layout' });
17 my $d = $tl->get_design();
19 #print STDERR Dumper($d);
21 # '35700' => {
22 #                        'rep_number' => '1',
23 #                        'plot_number' => '35700',
24 #                        'block_number' => '6',
25 #                        'accession_name' => 'UG120109',
26 #                        'plot_name' => 'KASESE_TP2013_699',
27 #                        'plot_id' => 39893
28 #                      },
32 is($d->{35700}->{block_number}, 6, "block number");
33 is($d->{35700}->{accession_name}, 'UG120109', "accession name");
34 is($d->{35700}->{plot_id}, 39893, "plot_id");
37 done_testing();