Bugzilla – Attachment 191613 Details for
Bug 40777
500 Error: Something went wrong when loading the table Should Exit Cleanly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40777: Add tests for for_biblio
Bug-40777-Add-tests-for-forbiblio.patch (text/plain), 1.71 KB, created by
Victor Grousset/tuxayo
on 2026-01-18 14:44:35 UTC
(
hide
)
Description:
Bug 40777: Add tests for for_biblio
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2026-01-18 14:44:35 UTC
Size:
1.71 KB
patch
obsolete
>From cc199e6432266ef614365c01cf31ac9cf02c98cb Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 5 Jan 2026 11:23:30 +0100 >Subject: [PATCH] Bug 40777: Add tests for for_biblio > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > .../Koha/Database/DataInconsistency.t | 31 ++++++++++++++++++- > 1 file changed, 30 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/Koha/Database/DataInconsistency.t b/t/db_dependent/Koha/Database/DataInconsistency.t >index 3d773b688a..8bbe09c621 100755 >--- a/t/db_dependent/Koha/Database/DataInconsistency.t >+++ b/t/db_dependent/Koha/Database/DataInconsistency.t >@@ -1,7 +1,7 @@ > use Modern::Perl; > > use Test::NoWarnings; >-use Test::More tests => 7; >+use Test::More tests => 8; > use Test::Warn; > > use Koha::Items; >@@ -436,3 +436,32 @@ subtest 'empty_title' => sub { > ); > }; > }; >+ >+subtest 'for_biblio' => sub { >+ >+ plan tests => 1; >+ >+ $schema->storage->txn_begin(); >+ >+ my $biblio_ok = $builder->build_sample_biblio; >+ my $item_ok = $builder->build_sample_item( { biblionumber => $biblio_ok->biblionumber } ); >+ >+ subtest 'ok' => sub { >+ plan tests => 1; >+ my $errors = Koha::Database::DataInconsistency->for_biblio($biblio_ok); >+ is_deeply( >+ $errors, >+ { >+ decoding_errors => [], >+ empty_title => [], >+ ids_not_in_marc => [], >+ invalid_item_library => [], >+ invalid_item_type => [], >+ item_fields_in_marc => [], >+ no_item_type => [], >+ nonexistent_AV => [] >+ } >+ ); >+ }; >+ >+}; >-- >2.52.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40777
:
187526
|
187527
|
187528
|
188222
|
188223
|
188224
|
188225
|
188226
|
188227
|
189598
|
190261
|
190262
|
190263
|
190264
|
190265
|
190266
|
190267
|
190268
|
190269
|
190270
|
190884
|
190885
|
191603
|
191604
|
191605
|
191606
|
191607
|
191608
|
191609
|
191610
|
191611
|
191612
| 191613 |
191614
|
191615