7 use SGN::Test::Fixture;
8 use CXGN::BreederSearch;
11 my $f = SGN::Test::Fixture->new();
13 my $bs = CXGN::BreederSearch->new( { dbh=> $f->dbh() });
21 my $results = $bs->metadata_query($criteria_list, $dataref, $queryref);
22 #print STDERR Dumper $results;
42 }, 'wizard one category query');
59 $results = $bs->metadata_query($criteria_list, $dataref, $queryref);
67 }, "wizard two category query" );
76 'locations' => '\'23\'',
86 $results = $bs ->metadata_query($criteria_list, $dataref, $queryref);
102 }, "wizard three category query");
108 'genotyping_protocols'
111 'genotyping_protocols' => {
112 'trials' => '\'139\'',
113 'locations' => '\'23\'',
114 'years' => '\'2014\''
118 'genotyping_protocols' => {
124 $results = $bs ->metadata_query($criteria_list, $dataref, $queryref);
125 is_deeply($results, {
129 'GBS ApeKI genotyping v4'
132 }, "wizard four category query");
141 'trials' => '\'139\',\'141\'',
142 'breeding_programs' => '\'134\''
148 'breeding_programs' => 0
151 $results = $bs ->metadata_query($criteria_list, $dataref, $queryref);
152 is_deeply($results, {
156 'dry matter content percentage|CO_334:0000092'
160 'fresh root weight|CO_334:0000012'
164 'fresh shoot weight measurement in kg|CO_334:0000016'
167 }, "wizard intersect query");
176 'trials' => '\'137\'',
177 'accessions' => '\'38840\',\'38841\''
186 $results = $bs ->metadata_query($criteria_list, $dataref, $queryref);
187 is_deeply($results, {
189 }, "wizard 0 results error query");