Bugzilla – Attachment 168855 Details for
Bug 37316
Cannot add items to basket via file if barcodes not supplied
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37316: Adjust tests
Bug-37316-Adjust-tests.patch (text/plain), 987 bytes, created by
Lucas Gass (lukeg)
on 2024-07-11 17:38:28 UTC
(
hide
)
Description:
Bug 37316: Adjust tests
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2024-07-11 17:38:28 UTC
Size:
987 bytes
patch
obsolete
>From 512d939893440d2088981fcb982a1fe5f19caf43 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Thu, 11 Jul 2024 17:37:58 +0000 >Subject: [PATCH] Bug 37316: Adjust tests > >--- > t/db_dependent/Koha/Item.t | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/t/db_dependent/Koha/Item.t b/t/db_dependent/Koha/Item.t >index 5b21086e22..7a59f62d44 100755 >--- a/t/db_dependent/Koha/Item.t >+++ b/t/db_dependent/Koha/Item.t >@@ -858,12 +858,15 @@ subtest 'store check barcodes' => sub { > ); > > $item->barcode("")->store(); >+ $item->discard_changes; > is( $item->barcode, undef, 'Empty string barcodes are treated as undef'); > > $item->barcode("123456789")->store(); >+ $item->discard_changes; > is( $item->barcode, "123456789", 'Non-empty string barcodes are unchanged'); > > $item->barcode(undef)->store(); >+ $item->discard_changes; > is( $item->barcode, undef, 'undef barcodes remain undef'); > }; > subtest 'deletion' => sub { >-- >2.39.2
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 37316
:
168767
|
168853
|
168854
|
168855
|
168858
|
168917
|
168918
|
168919