From 03aa616c8ffeefb73e729dca533697c8bbe8aeb6 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 19 Nov 2025 16:12:22 +0000 Subject: [PATCH] Bug 37893: (QA follow-up): Fix TestBuilder.t To test, run: prove t/db_dependent/TestBuilder.t Signed-off-by: Lucas Gass --- .../Result/SipAccountCustomItemField.pm | 21 +++++++++++++++++++ .../Result/SipAccountCustomPatronField.pm | 21 +++++++++++++++++++ Koha/Schema/Result/SipAccountItemField.pm | 21 +++++++++++++++++++ .../Result/SipAccountPatronAttribute.pm | 21 +++++++++++++++++++ .../Schema/Result/SipAccountScreenMsgRegex.pm | 21 +++++++++++++++++++ .../Schema/Result/SipAccountSortBinMapping.pm | 21 +++++++++++++++++++ .../SipAccountSystemPreferenceOverride.pm | 2 +- 7 files changed, 127 insertions(+), 1 deletion(-) diff --git a/Koha/Schema/Result/SipAccountCustomItemField.pm b/Koha/Schema/Result/SipAccountCustomItemField.pm index a9452ad3ba..bf31b6b050 100644 --- a/Koha/Schema/Result/SipAccountCustomItemField.pm +++ b/Koha/Schema/Result/SipAccountCustomItemField.pm @@ -120,4 +120,25 @@ __PACKAGE__->belongs_to( # You can replace this text with custom code or comments, and it will be preserved on regeneration + +=head2 koha_objects_class + + Koha Objects class + +=cut + +sub koha_objects_class { + 'Koha::SIP2::Account::CustomItemFields'; +} + +=head2 koha_object_class + + Koha Object class + +=cut + +sub koha_object_class { + 'Koha::SIP2::Account::CustomItemField'; +} + 1; diff --git a/Koha/Schema/Result/SipAccountCustomPatronField.pm b/Koha/Schema/Result/SipAccountCustomPatronField.pm index 67d7b68b3c..e95ff8795e 100644 --- a/Koha/Schema/Result/SipAccountCustomPatronField.pm +++ b/Koha/Schema/Result/SipAccountCustomPatronField.pm @@ -120,4 +120,25 @@ __PACKAGE__->belongs_to( # You can replace this text with custom code or comments, and it will be preserved on regeneration + +=head2 koha_objects_class + + Koha Objects class + +=cut + +sub koha_objects_class { + 'Koha::SIP2::Account::CustomPatronFields'; +} + +=head2 koha_object_class + + Koha Object class + +=cut + +sub koha_object_class { + 'Koha::SIP2::Account::CustomPatronField'; +} + 1; diff --git a/Koha/Schema/Result/SipAccountItemField.pm b/Koha/Schema/Result/SipAccountItemField.pm index fb6b78ef7c..c72b007223 100644 --- a/Koha/Schema/Result/SipAccountItemField.pm +++ b/Koha/Schema/Result/SipAccountItemField.pm @@ -120,4 +120,25 @@ __PACKAGE__->belongs_to( # You can replace this text with custom code or comments, and it will be preserved on regeneration + +=head2 koha_objects_class + + Koha Objects class + +=cut + +sub koha_objects_class { + 'Koha::SIP2::Account::ItemFields'; +} + +=head2 koha_object_class + + Koha Object class + +=cut + +sub koha_object_class { + 'Koha::SIP2::Account::ItemField'; +} + 1; diff --git a/Koha/Schema/Result/SipAccountPatronAttribute.pm b/Koha/Schema/Result/SipAccountPatronAttribute.pm index 64aac95308..c1af963aba 100644 --- a/Koha/Schema/Result/SipAccountPatronAttribute.pm +++ b/Koha/Schema/Result/SipAccountPatronAttribute.pm @@ -120,4 +120,25 @@ __PACKAGE__->belongs_to( # You can replace this text with custom code or comments, and it will be preserved on regeneration + +=head2 koha_objects_class + + Koha Objects class + +=cut + +sub koha_objects_class { + 'Koha::SIP2::Account::PatronAttributes'; +} + +=head2 koha_object_class + + Koha Object class + +=cut + +sub koha_object_class { + 'Koha::SIP2::Account::PatronAttribute'; +} + 1; diff --git a/Koha/Schema/Result/SipAccountScreenMsgRegex.pm b/Koha/Schema/Result/SipAccountScreenMsgRegex.pm index 6548d1b0e5..1d0f2f38e0 100644 --- a/Koha/Schema/Result/SipAccountScreenMsgRegex.pm +++ b/Koha/Schema/Result/SipAccountScreenMsgRegex.pm @@ -120,4 +120,25 @@ __PACKAGE__->belongs_to( # You can replace this text with custom code or comments, and it will be preserved on regeneration + +=head2 koha_objects_class + + Koha Objects class + +=cut + +sub koha_objects_class { + 'Koha::SIP2::Account::ScreenMsgRegexs'; +} + +=head2 koha_object_class + + Koha Object class + +=cut + +sub koha_object_class { + 'Koha::SIP2::Account::ScreenMsgRegex'; +} + 1; diff --git a/Koha/Schema/Result/SipAccountSortBinMapping.pm b/Koha/Schema/Result/SipAccountSortBinMapping.pm index 41909160cc..833b7cac4b 100644 --- a/Koha/Schema/Result/SipAccountSortBinMapping.pm +++ b/Koha/Schema/Result/SipAccountSortBinMapping.pm @@ -110,4 +110,25 @@ __PACKAGE__->belongs_to( # You can replace this text with custom code or comments, and it will be preserved on regeneration + +=head2 koha_objects_class + + Koha Objects class + +=cut + +sub koha_objects_class { + 'Koha::SIP2::Account::SortBinMappings'; +} + +=head2 koha_object_class + + Koha Object class + +=cut + +sub koha_object_class { + 'Koha::SIP2::Account::SortBinMapping'; +} + 1; diff --git a/Koha/Schema/Result/SipAccountSystemPreferenceOverride.pm b/Koha/Schema/Result/SipAccountSystemPreferenceOverride.pm index b618b0ad60..b0a74367ff 100644 --- a/Koha/Schema/Result/SipAccountSystemPreferenceOverride.pm +++ b/Koha/Schema/Result/SipAccountSystemPreferenceOverride.pm @@ -128,7 +128,7 @@ __PACKAGE__->belongs_to( =cut sub koha_objects_class { - 'Koha::SIP2::Accounts::SystemPreferenceOverrides'; + 'Koha::SIP2::Account::SystemPreferenceOverrides'; } =head2 koha_object_class