Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
};
subtest 'SearchItems test' => sub {
- plan tests => 13;
+ plan tests => 14;
# Start transaction
$dbh->{AutoCommit} = 0;
($items, $total_results) = SearchItems($filter);
ok(scalar @$items == 1, 'found 1 item with itemnotes = "foobar"');
+ my $cpl_items = SearchItemsByField( 'homebranch', 'CPL');
+ is( ( $cpl_items and scalar( @$cpl_items ) ), 1, 'SearchItemsByField should return something' );
+
$dbh->rollback;
};