Lines 228-234
subtest q{Test Koha::Database->schema()->resultset('Item')->itemtype()} => sub {
Link Here
|
228 |
}; |
228 |
}; |
229 |
|
229 |
|
230 |
subtest 'SearchItems test' => sub { |
230 |
subtest 'SearchItems test' => sub { |
231 |
plan tests => 13; |
231 |
plan tests => 14; |
232 |
|
232 |
|
233 |
# Start transaction |
233 |
# Start transaction |
234 |
$dbh->{AutoCommit} = 0; |
234 |
$dbh->{AutoCommit} = 0; |
Lines 383-388
subtest 'SearchItems test' => sub {
Link Here
|
383 |
($items, $total_results) = SearchItems($filter); |
383 |
($items, $total_results) = SearchItems($filter); |
384 |
ok(scalar @$items == 1, 'found 1 item with itemnotes = "foobar"'); |
384 |
ok(scalar @$items == 1, 'found 1 item with itemnotes = "foobar"'); |
385 |
|
385 |
|
|
|
386 |
my $cpl_items = SearchItemsByField( 'homebranch', 'CPL'); |
387 |
is( ( $cpl_items and scalar( @$cpl_items ) ), 1, 'SearchItemsByField should return something' ); |
388 |
|
386 |
$dbh->rollback; |
389 |
$dbh->rollback; |
387 |
}; |
390 |
}; |
388 |
|
391 |
|
389 |
- |
|
|