Bugzilla – Attachment 168858 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), 1.01 KB, created by
Eric Garcia
on 2024-07-11 17:54:48 UTC
(
hide
)
Description:
Bug 37316: Adjust tests
Filename:
MIME Type:
Creator:
Eric Garcia
Created:
2024-07-11 17:54:48 UTC
Size:
1.01 KB
patch
obsolete
>From 1999308f3ae7d2177e32e0683f20ae7ab29b86f6 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 > >Signed-off-by: Eric Garcia <cubingguy714@gmail.com> >--- > 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.30.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