View | Details | Raw Unified | Return to bug 18292
Collapse All | Expand All

(-)a/t/00-load.t (-1 lines)
Lines 106-109 sub is_testable { Link Here
106
106
107
done_testing();
107
done_testing();
108
108
109
1;
(-)a/t/Auth_with_shibboleth.t (-1 lines)
Lines 321-324 sub reset_config { Link Here
321
    return 1;
321
    return 1;
322
}
322
}
323
323
324
1;
(-)a/t/Biblio.t (-1 lines)
Lines 193-196 warnings_like { $ret = UpdateTotalIssues() } Link Here
193
193
194
ok( !defined $ret, 'UpdateTotalIssues returns carped warning if biblio record does not exist');
194
ok( !defined $ret, 'UpdateTotalIssues returns carped warning if biblio record does not exist');
195
195
196
1;
(-)a/t/Biblio/TransformHtmlToXml.t (-1 lines)
Lines 77-80 subtest "->TransformHtmlToXml (NORMARC) tests" => sub { Link Here
77
    run_tests('NORMARC');
77
    run_tests('NORMARC');
78
};
78
};
79
79
80
1;
(-)a/t/Boolean.t (-1 lines)
Lines 37-40 warning_like { $result = true_p([]) } Link Here
37
             'Invalid boolean (reference) raises warning';
37
             'Invalid boolean (reference) raises warning';
38
is( $result, undef, 'recognizes a reference as not a boolean' );
38
is( $result, undef, 'recognizes a reference as not a boolean' );
39
39
40
1;
(-)a/t/Calendar.t (-1 lines)
Lines 330-333 my $holiday_for_another_branch = DateTime->new( Link Here
330
    is ( $cal->is_holiday($holiday_for_another_branch), 1, 'Holiday defined for CPL should be defined as an holiday' );
330
    is ( $cal->is_holiday($holiday_for_another_branch), 1, 'Holiday defined for CPL should be defined as an holiday' );
331
}
331
}
332
332
333
1;
(-)a/t/Charset.t (-2 lines)
Lines 70-74 ok( Encode::is_utf8($record->subfield('100','a')) && Link Here
70
    'SetUTF8Flag sets the UTF-8 flag to all subfields' );
70
    'SetUTF8Flag sets the UTF-8 flag to all subfields' );
71
71
72
is( nsb_clean("Le Moyen Âge"), "Le Moyen Âge", "nsb_clean removes  and " );
72
is( nsb_clean("Le Moyen Âge"), "Le Moyen Âge", "nsb_clean removes  and " );
73
74
1;
(-)a/t/Circulation_barcodedecode.t (-1 lines)
Lines 61-64 foreach my $filter (@filters) { Link Here
61
#  ~ T, P or X followed by numeric characters
61
#  ~ T, P or X followed by numeric characters
62
#  ~ No checkdigit
62
#  ~ No checkdigit
63
63
64
1;
(-)a/t/Images.t (-1 lines)
Lines 69-72 is( $imagenumbers[1], 3, 'imagenumber is 3' ); Link Here
69
69
70
is( $imagenumbers[4], undef, 'imagenumber undef' );
70
is( $imagenumbers[4], undef, 'imagenumber undef' );
71
71
72
1;
(-)a/t/Koha.t (-1 lines)
Lines 151-154 ok($@ eq '', 'NormalizeISSN does not throw exception when parsing invalid ISSN') Link Here
151
is($issns[0], 'abc', 'Original ISSN passed through even if invalid');
151
is($issns[0], 'abc', 'Original ISSN passed through even if invalid');
152
is(scalar(@issns), 1, 'zero additional variations returned of invalid ISSN');
152
is(scalar(@issns), 1, 'zero additional variations returned of invalid ISSN');
153
153
154
1;
(-)a/t/Koha/Config.t (-1 lines)
Lines 59-62 subtest 'read_from_file() tests' => sub { Link Here
59
    is( $result, undef, 'Returns undef on error confition' );
59
    is( $result, undef, 'Returns undef on error confition' );
60
};
60
};
61
61
62
1;
(-)a/t/Koha/Util/Normalize.t (-1 lines)
Lines 82-85 subtest 'lower_case() normalizer' => sub { Link Here
82
        'The \'lower_case\' normalizer only makes characters lower-case' );
82
        'The \'lower_case\' normalizer only makes characters lower-case' );
83
};
83
};
84
84
85
1;
(-)a/t/Koha_MetadataRecord.t (-1 lines)
Lines 141-144 subtest "new() tests" => sub { Link Here
141
    is( $metadata_record, undef, 'record object mandatory')
141
    is( $metadata_record, undef, 'record object mandatory')
142
};
142
};
143
143
144
1;
(-)a/t/Koha_Template_Plugin_Koha.t (-1 lines)
Lines 76-79 subtest "Koha::Template::Plugin::Koha::Version tests" => sub { Link Here
76
76
77
};
77
};
78
78
79
1;
(-)a/t/Letters.t (-1 lines)
Lines 64-67 t::lib::Mocks::mock_preference('ReservesMaxPickUpDelay', 1); Link Here
64
$letter = C4::Letters::_parseletter( undef, 'reserves', {waitingdate => "2013-01-01"} );
64
$letter = C4::Letters::_parseletter( undef, 'reserves', {waitingdate => "2013-01-01"} );
65
is( ref($letter), 'HASH');
65
is( ref($letter), 'HASH');
66
66
67
1;
(-)a/t/Logger.t (-1 lines)
Lines 74-77 sub mytempfile { Link Here
74
    return $fn;
74
    return $fn;
75
}
75
}
76
76
77
1;
(-)a/t/Matcher.t (-1 lines)
Lines 311-314 sub get_authors_matchpoint { Link Here
311
    return $matchpoint;
311
    return $matchpoint;
312
}
312
}
313
313
314
1;
(-)a/t/Patron.t (-1 lines)
Lines 334-337 subtest 'Set tests' => sub { Link Here
334
    is( $patron->privacy,             '667789',                           'privacy field set ok' );
334
    is( $patron->privacy,             '667789',                           'privacy field set ok' );
335
};
335
};
336
336
337
1;
(-)a/t/SIP/Sip.t (-1 lines)
Lines 55-58 warning_is { $invalidTest = C4::SIP::Sip::Checksum::verify_cksum("1234567") } Link Here
55
            'verify_cksum prints the expected warning for an invalid checksum';
55
            'verify_cksum prints the expected warning for an invalid checksum';
56
is($invalidTest, 0, "Checksum: 1234567 is invalid as expected");
56
is($invalidTest, 0, "Checksum: 1234567 is invalid as expected");
57
57
58
1;
(-)a/t/SMS.t (-1 lines)
Lines 60-63 $send_sms = C4::SMS->send_sms({ Link Here
60
});
60
});
61
is( $send_sms, 1, 'send_sms returns 1' );
61
is( $send_sms, 1, 'send_sms returns 1' );
62
62
63
1;
(-)a/t/Search.t (-1 lines)
Lines 170-173 subtest "_build_initial_query tests" => sub { Link Here
170
};
170
};
171
171
172
172
173
1;
(-)a/t/SocialData.t (-1 lines)
Lines 72-75 is( $report->{'without'}->[0]->{'original'}, Link Here
72
is( $report->{'without'}->[0]->{'isbn'}, '9780596526740',
72
is( $report->{'without'}->[0]->{'isbn'}, '9780596526740',
73
    'testing get_report' );
73
    'testing get_report' );
74
74
75
1;
(-)a/t/SuggestionEngine_AuthorityFile.t (-1 lines)
Lines 71-74 is_deeply($result, [ { 'search' => 'an=1234', 'relevance' => 1, 'label' => 'Cook Link Here
71
71
72
done_testing();
72
done_testing();
73
73
74
1;
(-)a/t/XSLT.t (-1 lines)
Lines 77-80 my $matching_string = q{<syspref name="singleBranchMode">0</syspref>}; Link Here
77
my $sysprefs_xml = C4::XSLT::get_xslt_sysprefs();
77
my $sysprefs_xml = C4::XSLT::get_xslt_sysprefs();
78
ok( $sysprefs_xml =~ m/$matching_string/, 'singleBranchMode has a value of 0');
78
ok( $sysprefs_xml =~ m/$matching_string/, 'singleBranchMode has a value of 0');
79
79
80
1;
(-)a/t/db_dependent/Accounts.t (-1 lines)
Lines 478-481 subtest 'balance' => sub { Link Here
478
    $patron->delete;
478
    $patron->delete;
479
};
479
};
480
480
481
1;
(-)a/t/db_dependent/Auth_with_cas.t (-1 lines)
Lines 67-70 is(C4::Auth_with_cas::_url_with_get_params($cgi, 'intranet'), Link Here
67
67
68
$dbh->rollback;
68
$dbh->rollback;
69
69
70
1;
(-)a/t/db_dependent/Auth_with_ldap.t (-1 lines)
Lines 503-506 sub is_admin_bind { Link Here
503
503
504
$schema->storage->txn_rollback();
504
$schema->storage->txn_rollback();
505
505
506
1;
(-)a/t/db_dependent/Barcodes_ValueBuilder.t (-1 lines)
Lines 77-80 is($scr, undef, 'annual javascript'); Link Here
77
77
78
$schema->storage->txn_rollback;
78
$schema->storage->txn_rollback;
79
79
80
1;
(-)a/t/db_dependent/Biblio.t (-1 lines)
Lines 389-392 subtest 'deletedbiblio_metadata' => sub { Link Here
389
    is( $moved, $biblionumber, 'Found in deletedbiblio_metadata' );
389
    is( $moved, $biblionumber, 'Found in deletedbiblio_metadata' );
390
};
390
};
391
391
392
1;
(-)a/t/db_dependent/Circulation/Branch.t (-1 lines)
Lines 276-279 is($messages->{NeedsTransfer},undef,"AddReturn respects branch item return polic Link Here
276
276
277
$schema->storage->txn_rollback;
277
$schema->storage->txn_rollback;
278
278
279
1;
(-)a/t/db_dependent/Circulation/CheckIfIssuedToPatron.t (-1 lines)
Lines 131-134 is( $check_if_issued, 1, 'CheckIfIssuedToPatron returns true' ); Link Here
131
131
132
$dbh->rollback();
132
$dbh->rollback();
133
133
134
1;
(-)a/t/db_dependent/Circulation/CheckValidBarcode.t (-1 lines)
Lines 84-87 is( $check_valid_barcode, 0, 'CheckValidBarcode with an invalid barcode returns Link Here
84
84
85
$dbh->rollback();
85
$dbh->rollback();
86
86
87
1;
(-)a/t/db_dependent/Circulation/GetPendingOnSiteCheckouts.t (-1 lines)
Lines 82-85 is( scalar @$onsite_checkouts, 1, "There is 1 pending on-site checkout" ); Link Here
82
82
83
$schema->storage->txn_rollback;
83
$schema->storage->txn_rollback;
84
84
85
1;
(-)a/t/db_dependent/Circulation/IsItemIssued.t (-1 lines)
Lines 93-96 is( Link Here
93
93
94
$schema->storage->txn_rollback;
94
$schema->storage->txn_rollback;
95
95
96
1;
(-)a/t/db_dependent/Circulation/MarkIssueReturned.t (-1 lines)
Lines 58-61 unlike ( $@, qr<Fatal error: the patron \(\d+\) .* AnonymousPatron>, ); Link Here
58
58
59
$schema->storage->txn_rollback;
59
$schema->storage->txn_rollback;
60
60
61
1;
(-)a/t/db_dependent/Circulation/NoIssuesChargeGuarantees.t (-1 lines)
Lines 65-68 is( $issuingimpossible->{DEBT_GUARANTEES} + 0, '10.00' + 0, "Patron cannot check Link Here
65
65
66
$schema->storage->txn_rollback;
66
$schema->storage->txn_rollback;
67
67
68
1;
(-)a/t/db_dependent/Circulation/Returns.t (-1 lines)
Lines 330-333 subtest 'Handle ids duplication' => sub { Link Here
330
    is( Koha::Checkouts->find( $issue_id )->issue_id, $issue_id, 'The issues entry should not have been removed' );
330
    is( Koha::Checkouts->find( $issue_id )->issue_id, $issue_id, 'The issues entry should not have been removed' );
331
};
331
};
332
332
333
1;
(-)a/t/db_dependent/Circulation/StoreLastBorrower.t (-1 lines)
Lines 141-144 subtest 'Test StoreLastBorrower' => sub { Link Here
141
141
142
$schema->storage->txn_rollback;
142
$schema->storage->txn_rollback;
143
143
144
1;
(-)a/t/db_dependent/Circulation/SwitchOnSiteCheckouts.t (-1 lines)
Lines 161-164 is( exists $impossible->{TOO_MANY}, '', 'Specific case 2 - Switch is allowed' ); Link Here
161
161
162
$schema->storage->txn_rollback;
162
$schema->storage->txn_rollback;
163
163
164
1;
(-)a/t/db_dependent/Circulation/TooMany.t (-1 lines)
Lines 413-416 sub teardown { Link Here
413
    $dbh->do(q|DELETE FROM issuingrules|);
413
    $dbh->do(q|DELETE FROM issuingrules|);
414
}
414
}
415
415
416
1;
(-)a/t/db_dependent/Circulation/dateexpiry.t (-1 lines)
Lines 120-123 sub calc_date_due { Link Here
120
120
121
$schema->storage->txn_rollback;
121
$schema->storage->txn_rollback;
122
122
123
1;
(-)a/t/db_dependent/Circulation/transfers.t (-1 lines)
Lines 194-197 cmp_deeply( Link Here
194
194
195
$schema->storage->txn_rollback;
195
$schema->storage->txn_rollback;
196
196
197
1;
(-)a/t/db_dependent/Clubs.t (-1 lines)
Lines 231-234 is( $patron->get_enrollable_clubs->count, Link Here
231
is( $club->club_enrollments->count, 1, 'There is 1 enrollment for club' );
231
is( $club->club_enrollments->count, 1, 'There is 1 enrollment for club' );
232
232
233
$schema->storage->txn_rollback();
233
$schema->storage->txn_rollback();
234
1;
(-)a/t/db_dependent/Context.t (-1 lines)
Lines 149-152 sub TransformVersionToNum { Link Here
149
    $version =~ s/XXX$/999/;
149
    $version =~ s/XXX$/999/;
150
    return $version;
150
    return $version;
151
}
151
}
152
1;
(-)a/t/db_dependent/DecreaseLoanHighHolds.t (-1 lines)
Lines 190-193 ok( $needsconfirmation->{HIGHHOLDS}, "High holds checkout needs confirmation" ); Link Here
190
ok( !$needsconfirmation->{HIGHHOLDS}, "High holds checkout does not need confirmation" );
190
ok( !$needsconfirmation->{HIGHHOLDS}, "High holds checkout does not need confirmation" );
191
191
192
$schema->storage->txn_rollback();
192
$schema->storage->txn_rollback();
193
1;
(-)a/t/db_dependent/Exporter/Record.t (-1 lines)
Lines 213-216 subtest 'export without record_type' => sub { Link Here
213
213
214
$schema->storage->txn_rollback;
214
$schema->storage->txn_rollback;
215
215
216
1;
(-)a/t/db_dependent/Filter_MARC_ViewPolicy.t (-1 lines)
Lines 206-209 subtest 'Koha::Filter::MARC::ViewPolicy intranet tests' => sub { Link Here
206
    $schema->storage->txn_rollback();
206
    $schema->storage->txn_rollback();
207
};
207
};
208
208
209
1;
(-)a/t/db_dependent/Hold.t (-1 lines)
Lines 172-175 subtest "delete() tests" => sub { Link Here
172
    $schema->storage->txn_rollback();
172
    $schema->storage->txn_rollback();
173
 };
173
 };
174
174
175
1;
(-)a/t/db_dependent/Holidays.t (-1 lines)
Lines 203-206 sub _add_exception { Link Here
203
203
204
$schema->storage->txn_rollback;
204
$schema->storage->txn_rollback;
205
205
206
1;
(-)a/t/db_dependent/ILSDI_Services.t (-1 lines)
Lines 198-201 subtest 'GetPatronInfo/GetBorrowerAttributes test for extended patron attributes Link Here
198
    $schema->storage->txn_rollback;
198
    $schema->storage->txn_rollback;
199
};
199
};
200
200
201
1;
(-)a/t/db_dependent/Items/MoveItemFromBiblio.t (-1 lines)
Lines 95-98 is( $get_item_level_hold_2->{biblionumber}, $to_biblio->{biblionumber}, 'MoveI Link Here
95
95
96
$schema->storage->txn_rollback;
96
$schema->storage->txn_rollback;
97
97
98
1;
(-)a/t/db_dependent/Items_DelItemCheck.t (-1 lines)
Lines 167-170 is( $test_item->{itemnumber}, undef, Link Here
167
167
168
$schema->storage->txn_rollback;
168
$schema->storage->txn_rollback;
169
169
170
1;
(-)a/t/db_dependent/Koha/BiblioUtils.t (-1 lines)
Lines 57-60 is( $subtitles[1], 'Another Test Record Subtitle', 'Got second subtitle correctl Link Here
57
57
58
$schema->storage->txn_rollback();
58
$schema->storage->txn_rollback();
59
59
60
1;
(-)a/t/db_dependent/Koha/Biblios.t (-1 lines)
Lines 82-85 subtest 'subscriptions' => sub { Link Here
82
82
83
$schema->storage->txn_rollback;
83
$schema->storage->txn_rollback;
84
84
85
1;
(-)a/t/db_dependent/Koha/Checkouts.t (-1 lines)
Lines 105-108 is( Koha::Checkouts->search->count, $nb_of_checkouts + 1, 'Delete should have de Link Here
105
105
106
$schema->storage->txn_rollback;
106
$schema->storage->txn_rollback;
107
107
108
1;
(-)a/t/db_dependent/Koha/Cities.t (-1 lines)
Lines 56-59 is( Koha::Cities->search->count, $nb_of_cities + 1, 'Delete should have deleted Link Here
56
56
57
$schema->storage->txn_rollback;
57
$schema->storage->txn_rollback;
58
58
59
1;
(-)a/t/db_dependent/Koha/CsvProfiles.t (-1 lines)
Lines 55-58 is( Koha::CsvProfiles->search->count, $nb_of_csv_profiles + 1, 'Delete should ha Link Here
55
55
56
$schema->storage->txn_rollback;
56
$schema->storage->txn_rollback;
57
57
58
1;
(-)a/t/db_dependent/Koha/Filter/EmbedItemsAvailability.t (-1 lines)
Lines 150-153 subtest 'EmbedItemsAvailability tests' => sub { Link Here
150
    $schema->storage->txn_rollback();
150
    $schema->storage->txn_rollback();
151
};
151
};
152
152
153
1;
(-)a/t/db_dependent/Koha/IssuingRules.t (-1 lines)
Lines 250-253 sub _row_match { Link Here
250
250
251
$schema->storage->txn_rollback;
251
$schema->storage->txn_rollback;
252
252
253
1;
(-)a/t/db_dependent/Koha/Item/Transfers.t (-1 lines)
Lines 66-69 is( $retrieved_transfer_1->itemnumber, $new_transfer_1->itemnumber, 'Find a tran Link Here
66
66
67
$schema->storage->txn_rollback;
67
$schema->storage->txn_rollback;
68
68
69
1;
(-)a/t/db_dependent/Koha/Items.t (-1 lines)
Lines 123-126 is( Koha::Items->search->count, $nb_of_items + 1, 'Delete should have deleted th Link Here
123
123
124
$schema->storage->txn_rollback;
124
$schema->storage->txn_rollback;
125
125
126
1;
(-)a/t/db_dependent/Koha/Libraries.t (-1 lines)
Lines 87-90 $retrieved_category_2->delete; Link Here
87
is( Koha::LibraryCategories->search->count, $nb_of_categories + 2, 'Delete should have deleted the library category' );
87
is( Koha::LibraryCategories->search->count, $nb_of_categories + 2, 'Delete should have deleted the library category' );
88
88
89
$schema->storage->txn_rollback;
89
$schema->storage->txn_rollback;
90
1;
(-)a/t/db_dependent/Koha/MarcSubfieldStructures.t (-1 lines)
Lines 54-57 is( Koha::MarcSubfieldStructures->search->count, $nb_of_fields + 1, 'Delete shou Link Here
54
54
55
$schema->storage->txn_rollback;
55
$schema->storage->txn_rollback;
56
56
57
1;
(-)a/t/db_dependent/Koha/News.t (-1 lines)
Lines 56-59 is( Koha::News->search->count, $nb_of_news + 1, 'Delete should have deleted the Link Here
56
56
57
$schema->storage->txn_rollback;
57
$schema->storage->txn_rollback;
58
58
59
1;
(-)a/t/db_dependent/Koha/Notices.t (-1 lines)
Lines 68-71 is( Koha::Notice::Templates->search->count, Link Here
68
68
69
$schema->storage->txn_rollback;
69
$schema->storage->txn_rollback;
70
70
71
1;
(-)a/t/db_dependent/Koha/Objects.t (-1 lines)
Lines 214-217 subtest 'Exceptions' => sub { Link Here
214
};
214
};
215
215
216
$schema->storage->txn_rollback;
216
$schema->storage->txn_rollback;
217
1;
(-)a/t/db_dependent/Koha/Patron/Attribute/Types.t (-1 lines)
Lines 336-339 subtest 'search() with branch limits tests' => sub { Link Here
336
    $schema->storage->txn_rollback;
336
    $schema->storage->txn_rollback;
337
};
337
};
338
338
339
1;
(-)a/t/db_dependent/Koha/Patron/Attributes.t (-1 lines)
Lines 275-278 subtest 'type() tests' => sub { Link Here
275
    $schema->storage->txn_rollback;
275
    $schema->storage->txn_rollback;
276
};
276
};
277
277
278
1;
(-)a/t/db_dependent/Koha/Patron/Categories.t (-1 lines)
Lines 115-118 is( Koha::Patron::Categories->search->count, $nb_of_categories + 2, 'upperagelim Link Here
115
115
116
$schema->storage->txn_rollback;
116
$schema->storage->txn_rollback;
117
117
118
1;
(-)a/t/db_dependent/Koha/Patron/Images.t (-1 lines)
Lines 51-54 is( Koha::Patron::Images->search->count, $nb_of_images, 'Delete should have dele Link Here
51
51
52
$schema->storage->txn_rollback;
52
$schema->storage->txn_rollback;
53
53
54
1;
(-)a/t/db_dependent/Koha/Patron/Messages.t (-1 lines)
Lines 93-96 sub get_nb_of_logactions { Link Here
93
    return scalar( @{ C4::Log::GetLogs( undef, undef, undef, ['MEMBERS'] ) } );
93
    return scalar( @{ C4::Log::GetLogs( undef, undef, undef, ['MEMBERS'] ) } );
94
}
94
}
95
95
96
1;
(-)a/t/db_dependent/Koha/Patron/Modifications.t (-1 lines)
Lines 370-373 subtest 'pending_count() and pending() tests' => sub { Link Here
370
    $schema->storage->txn_rollback;
370
    $schema->storage->txn_rollback;
371
};
371
};
372
372
373
1;
(-)a/t/db_dependent/Koha/Patrons.t (-1 lines)
Lines 913-916 is( Koha::Patrons->search->count, $nb_of_patrons + 1, 'Delete should have delete Link Here
913
913
914
$schema->storage->txn_rollback;
914
$schema->storage->txn_rollback;
915
915
916
1;
(-)a/t/db_dependent/Koha/Ratings.t (-1 lines)
Lines 57-60 is( Koha::Ratings->search( { biblionumber => $biblionumber } )->count, 0, 'Delet Link Here
57
57
58
is( int(Koha::Ratings->search( { biblionumber => $biblionumber } )->get_avg_rating), 0, 'get_avg_rating should return 0 if no rating exist' );
58
is( int(Koha::Ratings->search( { biblionumber => $biblionumber } )->get_avg_rating), 0, 'get_avg_rating should return 0 if no rating exist' );
59
59
60
1;
(-)a/t/db_dependent/Koha/Reviews.t (-1 lines)
Lines 70-73 is( Koha::Reviews->search->count, $nb_of_reviews + 2, 'Delete should have delete Link Here
70
70
71
$schema->storage->txn_rollback;
71
$schema->storage->txn_rollback;
72
72
73
1;
(-)a/t/db_dependent/Koha/SMS_Providers.t (-1 lines)
Lines 72-75 is( Koha::SMS::Providers->search->count, Link Here
72
72
73
$schema->storage->txn_rollback;
73
$schema->storage->txn_rollback;
74
74
75
1;
(-)a/t/db_dependent/Koha/Suggestions.t (-1 lines)
Lines 57-60 is( Koha::Suggestions->search->count, $nb_of_suggestions + 1, 'Delete should hav Link Here
57
57
58
$schema->storage->txn_rollback;
58
$schema->storage->txn_rollback;
59
59
60
1;
(-)a/t/db_dependent/Koha_Elasticsearch.t (-2 lines)
Lines 151-155 subtest 'get_fixer_rules() tests' => sub { Link Here
151
    $schema->storage->txn_rollback;
151
    $schema->storage->txn_rollback;
152
152
153
};
153
};
154
155
1;
(-)a/t/db_dependent/Koha_Elasticsearch_Indexer.t (-2 lines)
Lines 122-126 subtest '_convert_marc_to_json() tests' => sub { Link Here
122
122
123
    $schema->storage->txn_rollback;
123
    $schema->storage->txn_rollback;
124
};
124
};
125
126
1;
(-)a/t/db_dependent/Koha_Misc_Files.t (-1 lines)
Lines 87-90 is(scalar @{$mf_b_221->GetFilesInfo()}, 0, "GetFilesInfo() result count after De Link Here
87
87
88
$dbh->rollback;
88
$dbh->rollback;
89
89
90
1;
(-)a/t/db_dependent/Koha_SearchEngine_Elasticsearch_Search.t (-1 lines)
Lines 103-106 subtest 'build_query tests' => sub { Link Here
103
        'holdingbranch not added to facets if DisplayLibraryFacets=home' );
103
        'holdingbranch not added to facets if DisplayLibraryFacets=home' );
104
};
104
};
105
105
106
1;
(-)a/t/db_dependent/Labels/t_Layout.t (-1 lines)
Lines 109-112 is($updated_layout->get_text_wrap_cols(label_width => 180, left_text_margin => 1 Link Here
109
my $del_results = $updated_layout->delete();
109
my $del_results = $updated_layout->delete();
110
ok( ! defined($del_results) , "Layout->delete() success");
110
ok( ! defined($del_results) , "Layout->delete() success");
111
111
112
1;
(-)a/t/db_dependent/Labels/t_Profile.t (-1 lines)
Lines 95-98 is_deeply($updated_profile, $saved_profile, "Updated layout object verify succes Link Here
95
my $del_results = $updated_profile->delete();
95
my $del_results = $updated_profile->delete();
96
ok($del_results ne -1, "Profile->delete() success");
96
ok($del_results ne -1, "Profile->delete() success");
97
97
98
1;
(-)a/t/db_dependent/Labels/t_Template.t (-1 lines)
Lines 135-138 foreach my $key (keys %{$expect_conv}) { Link Here
135
my $del_results = $updated_template->delete();
135
my $del_results = $updated_template->delete();
136
ok($del_results ne -1, "Template->delete() success");
136
ok($del_results ne -1, "Template->delete() success");
137
137
138
1;
(-)a/t/db_dependent/Members/GetAllIssues.t (-1 lines)
Lines 112-115 is( $issues->[0]->{itemnumber}, $itemnumber3, '' ); Link Here
112
112
113
$schema->storage->txn_begin;
113
$schema->storage->txn_begin;
114
114
115
1;
(-)a/t/db_dependent/Members/GetPendingIssues.t (-1 lines)
Lines 128-131 is( @$issues, 0, Link Here
128
128
129
$schema->storage->txn_begin;
129
$schema->storage->txn_begin;
130
130
131
1;
(-)a/t/db_dependent/Members/IssueSlip.t (-1 lines)
Lines 405-408 subtest 'bad calls' => sub { Link Here
405
405
406
$schema->storage->txn_rollback;
406
$schema->storage->txn_rollback;
407
407
408
1;
(-)a/t/db_dependent/Passwordrecovery.t (-1 lines)
Lines 194-197 ok( scalar @$letters == 2, "[SendPasswordRecoveryEmail] UPDATE == ON sends a new Link Here
194
194
195
$schema->storage->txn_rollback();
195
$schema->storage->txn_rollback();
196
196
197
1;
(-)a/t/db_dependent/Patron/Borrower_Discharge.t (-1 lines)
Lines 128-131 is( ref(Koha::Patron::Discharge::request({ borrowernumber => $patron->{borrowern Link Here
128
128
129
$schema->storage->txn_rollback;
129
$schema->storage->txn_rollback;
130
130
131
1;
(-)a/t/db_dependent/Patron/Borrower_PrevCheckout.t (-1 lines)
Lines 442-445 map { Link Here
442
442
443
$schema->storage->txn_rollback;
443
$schema->storage->txn_rollback;
444
444
445
1;
(-)a/t/db_dependent/Patron/Housebound.t (-1 lines)
Lines 36-39 is( Link Here
36
36
37
$schema->storage->txn_rollback;
37
$schema->storage->txn_rollback;
38
38
39
1;
(-)a/t/db_dependent/Patron/HouseboundProfiles.t (-1 lines)
Lines 72-75 is( Link Here
72
72
73
$schema->storage->txn_rollback;
73
$schema->storage->txn_rollback;
74
74
75
1;
(-)a/t/db_dependent/Patron/HouseboundRoles.t (-1 lines)
Lines 85-88 isa_ok(Koha::Patrons->search_housebound_deliverers->next, "Koha::Patron"); Link Here
85
85
86
$schema->storage->txn_rollback;
86
$schema->storage->txn_rollback;
87
87
88
1;
(-)a/t/db_dependent/Patron/HouseboundVisits.t (-1 lines)
Lines 86-89 isa_ok( $result->chooser, "Koha::Patron"); Link Here
86
86
87
$schema->storage->txn_rollback;
87
$schema->storage->txn_rollback;
88
88
89
1;
(-)a/t/db_dependent/PatronLists.t (-1 lines)
Lines 102-105 ok( !@lists, 'DelPatronList works' ); Link Here
102
102
103
$schema->storage->txn_rollback;
103
$schema->storage->txn_rollback;
104
104
105
1;
(-)a/t/db_dependent/Patrons.t (-1 lines)
Lines 105-108 foreach my $b ( $patrons->as_list() ) { Link Here
105
105
106
$schema->storage->txn_rollback();
106
$schema->storage->txn_rollback();
107
107
108
1;
(-)a/t/db_dependent/QueryParser.t (-1 lines)
Lines 68-71 sub get_default_search_class { Link Here
68
    return $default_search_class;
68
    return $default_search_class;
69
}
69
}
70
70
71
1;
(-)a/t/db_dependent/RefundLostItemFeeRule.t (-1 lines)
Lines 280-283 subtest 'Koha::RefundLostItemFeeRules::should_refund() tests' => sub { Link Here
280
    $schema->storage->txn_rollback;
280
    $schema->storage->txn_rollback;
281
};
281
};
282
282
283
1;
(-)a/t/db_dependent/Reserves/GetReserveFee.t (-1 lines)
Lines 222-225 sub addreserve { Link Here
222
222
223
$schema->storage->txn_rollback;
223
$schema->storage->txn_rollback;
224
224
225
1;
(-)a/t/db_dependent/Reserves/MultiplePerRecord.t (-1 lines)
Lines 291-294 is( $can, 'tooManyHoldsForThisRecord', 'Third hold exceeds limit of holds per re Link Here
291
291
292
$schema->storage->txn_rollback;
292
$schema->storage->txn_rollback;
293
293
294
1;
(-)a/t/db_dependent/RotatingCollections.t (-1 lines)
Lines 335-338 is( Link Here
335
#End transaction
335
#End transaction
336
$dbh->rollback;
336
$dbh->rollback;
337
337
338
1;
(-)a/t/db_dependent/SIP/SIPServer.t (-1 lines)
Lines 75-78 subtest 'Get_timeout' => sub { Link Here
75
    is( C4::SIP::SIPServer::get_timeout( $server, { transport => 1 } ), 30, "Fallback again" );
75
    is( C4::SIP::SIPServer::get_timeout( $server, { transport => 1 } ), 30, "Fallback again" );
76
};
76
};
77
77
78
1;
(-)a/t/db_dependent/Search.t (-1 lines)
Lines 988-991 subtest 'UNIMARC + DOM' => sub { Link Here
988
# Make sure that following tests are not using our config settings
988
# Make sure that following tests are not using our config settings
989
Koha::Caches->get_instance('config')->flush_all;
989
Koha::Caches->get_instance('config')->flush_all;
990
990
991
1;
(-)a/t/db_dependent/Serials/ReNewSubscription.t (-1 lines)
Lines 93-96 is ( $history->histenddate(), undef, 'subscription history not empty after renew Link Here
93
93
94
$schema->storage->txn_rollback;
94
$schema->storage->txn_rollback;
95
95
96
1;
(-)a/t/db_dependent/Template/Plugin/Categories.t (-1 lines)
Lines 57-60 is( Koha::Template::Plugin::Categories->GetName( Link Here
57
57
58
$schema->storage->txn_rollback;
58
$schema->storage->txn_rollback;
59
59
60
1;
(-)a/t/db_dependent/Templates.t (-1 lines)
Lines 105-108 subtest 'Testing gettemplate' => sub { Link Here
105
    is( $template ? $template->output: '', '', 'Check output' );
105
    is( $template ? $template->output: '', '', 'Check output' );
106
};
106
};
107
107
108
1;
(-)a/t/db_dependent/Utils/Datatables_Members.t (-2 lines)
Lines 475-479 sub set_logged_in_user { Link Here
475
        '',                      ''
475
        '',                      ''
476
    );
476
    );
477
}
477
}
478
479
1;
(-)a/t/db_dependent/Utils/Datatables_Virtualshelves.t (-1 lines)
Lines 256-259 sub _add_biblio { Link Here
256
    return $biblionumber;
256
    return $biblionumber;
257
}
257
}
258
258
259
1;
(-)a/t/db_dependent/api/v1/cities.t (-1 lines)
Lines 376-379 sub create_user_and_session { Link Here
376
    return ( $user->{borrowernumber}, $session->id );
376
    return ( $user->{borrowernumber}, $session->id );
377
}
377
}
378
378
379
1;
(-)a/t/db_dependent/db_structure.t (-1 lines)
Lines 61-64 for my $modules ( @modules ) { Link Here
61
61
62
done_testing();
62
done_testing();
63
63
64
1;
(-)a/t/db_dependent/www/auth_values_input_www.t (-1 lines)
Lines 188-191 if ($id_to_del2) { Link Here
188
    ok($id_to_del2 ne undef, "error, link to delete not working");
188
    ok($id_to_del2 ne undef, "error, link to delete not working");
189
}
189
}
190
190
191
1;
(-)a/t/db_dependent/www/batch.t (-1 lines)
Lines 210-213 $agent->get("$intranet/cgi-bin/koha/tools/batch_records_ajax.pl?import_batch_id= Link Here
210
$jsonresponse = decode_json $agent->content;
210
$jsonresponse = decode_json $agent->content;
211
is( $jsonresponse->{ aaData }[0]->{ status }, 'reverted', 'record marked as reverted' );
211
is( $jsonresponse->{ aaData }[0]->{ status }, 'reverted', 'record marked as reverted' );
212
212
213
1;
(-)a/t/db_dependent/www/history.t (-1 lines)
Lines 64-67 my $history_page = Encode::encode('UTF-8', $agent->text()); Link Here
64
like( $history_page, qr/$encoded_latin_name/, "Latin characters with umlauts show correctly on the history page." );
64
like( $history_page, qr/$encoded_latin_name/, "Latin characters with umlauts show correctly on the history page." );
65
like( $history_page, qr/$encoded_cyrillic_name/, "Cyrillic characters with umlauts show correctly on the history page." );
65
like( $history_page, qr/$encoded_cyrillic_name/, "Cyrillic characters with umlauts show correctly on the history page." );
66
66
67
1;
(-)a/t/db_dependent/www/search_utf8.t (-2 lines)
Lines 343-346 END { Link Here
343
    cleanup();
343
    cleanup();
344
};
344
};
345
345
346
1;
347
- 

Return to bug 18292